Skip to content

Commit

Permalink
pmac: fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed Jul 26, 2024
1 parent 482caac commit dddb662
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pmac/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,14 @@ where
// and migration to const generics
let mut iter = blocks.chunks_exact(B::ParBlocksSize::USIZE);
for chunk in &mut iter {
let mut tmp = ParBlocks::<B>::clone_from_slice(chunk);
let mut tmp = ParBlocks::<B>::try_from(chunk).expect("size mismatch");

for block in tmp.iter_mut() {
xor(block, state.next_offset());
}

backend.proc_par_blocks((&mut tmp).into());

for t in tmp.iter() {
xor(&mut state.tag, t);
}
Expand Down

0 comments on commit dddb662

Please sign in to comment.