Skip to content

Commit 5a9a3ad

Browse files
authored
aes: fix new clippy lint for rust 1.63
1 parent bf1c187 commit 5a9a3ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hal/src/aes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ impl Aes {
407407
}
408408

409409
// expensive copy for the sake of allowing unaligned u8 data
410+
#[allow(clippy::get_first)]
410411
fn set_din_block(&mut self, block: &[u8]) {
411412
for chunk in block.chunks(4) {
412413
let din: u32 = (chunk.get(0).copied().unwrap_or(0) as u32) << 24

0 commit comments

Comments
 (0)