File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 103
103
) ]
104
104
105
105
#[ cfg( not( miri) ) ]
106
- #[ cfg( all ( target_arch = "aarch64" ) ) ]
106
+ #[ cfg( target_arch = "aarch64" ) ]
107
107
#[ doc( hidden) ]
108
108
pub mod aarch64;
109
109
Original file line number Diff line number Diff line change 13
13
clippy:: cast_sign_loss,
14
14
clippy:: checked_conversions,
15
15
clippy:: implicit_saturating_sub,
16
- clippy:: integer_arithmetic ,
16
+ clippy:: arithmetic_side_effects ,
17
17
clippy:: panic,
18
18
clippy:: panic_in_result_fn,
19
19
clippy:: unwrap_used,
@@ -612,7 +612,7 @@ mod tests {
612
612
assert ! ( ByteArray :: <U0 >:: try_from( slice) . is_err( ) ) ;
613
613
assert ! ( ByteArray :: <U3 >:: try_from( slice) . is_err( ) ) ;
614
614
615
- let array_ref = ByteArray :: < U6 > :: try_from ( slice) . unwrap ( ) ;
615
+ let array_ref = ByteArray :: < U6 > :: try_from ( slice) . expect ( "slice contains 6 bytes" ) ;
616
616
assert_eq ! ( & * array_ref, slice) ;
617
617
618
618
assert ! ( ByteArray :: <U7 >:: try_from( slice) . is_err( ) ) ;
You can’t perform that action at this time.
0 commit comments