Skip to content

Commit

Permalink
chore: explain clippy false-positive
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Dec 12, 2024
1 parent 0c94f89 commit 3a3d168
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ariel-os-embassy-common/src/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ pub trait DeviceId: Sized {
}
}

#[expect(
clippy::missing_panics_doc,
reason = "False positive. Clippy does not see that `u32::from_le_bytes(eui48[1..5].try_into().unwrap())` can not panic, even though the compiler produces panic free code."
)]
fn generate_aai_mac_address(
truncated_board_hash: [u8; 6],
device_id_bytes: impl AsRef<[u8]>,
Expand Down

0 comments on commit 3a3d168

Please sign in to comment.