File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 1313 clippy:: cast_sign_loss,
1414 clippy:: checked_conversions,
1515 clippy:: implicit_saturating_sub,
16+ clippy:: missing_safety_doc,
1617 clippy:: panic,
1718 clippy:: panic_in_result_fn,
19+ clippy:: undocumented_unsafe_blocks,
1820 clippy:: unwrap_used,
1921 missing_docs,
2022 rust_2018_idioms,
@@ -525,6 +527,7 @@ impl<'key> Argon2<'key> {
525527 }
526528
527529 if self . cpu_feat_avx2 . get ( ) {
530+ // SAFETY: checked that AVX2 was detected.
528531 return unsafe { compress_avx2 ( rhs, lhs) } ;
529532 }
530533 }
Original file line number Diff line number Diff line change 88//! > length of q/SL. Segments of the same slice can be computed in parallel and do not reference
99//! > blocks from each other. All other blocks can be referenced.
1010
11- #![ warn(
12- clippy:: undocumented_unsafe_blocks,
13- clippy:: missing_safety_doc,
14- unsafe_op_in_unsafe_fn
15- ) ]
16-
1711use core:: marker:: PhantomData ;
1812use core:: ptr:: NonNull ;
1913
You can’t perform that action at this time.
0 commit comments