Skip to content

Commit

Permalink
Remove unnecessary as_ref call
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-nitrokey committed Oct 9, 2024
1 parent 25881c9 commit c6ccd77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/sha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl<Size: OutputSize> Sha<'_, Size> {
fn process_block(peripheral: &mut Hashcrypt<Enabled>, input: &GenericArray<u8, BlockSize>) {
// input must be word-aligned
let input: Aligned<A4, GenericArray<u8, BlockSize>> = Aligned(input.clone());
let addr: u32 = &input.as_ref()[0] as *const _ as _;
let addr: u32 = &input[0] as *const _ as _;
assert_eq!(addr & 0x3, 0);
while peripheral.raw.status.read().waiting().is_not_waiting() {
continue;
Expand Down

0 comments on commit c6ccd77

Please sign in to comment.