Skip to content

Commit 7a96abf

Browse files
committed
Fix clippy warnings
1 parent a4763ad commit 7a96abf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hal/blocking/src/mac.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ mod tests {
830830
// Test wrong size
831831
let wrong_size = &[0u8; 16][..];
832832
let result = SecureKey::<32>::from_slice(wrong_size);
833-
assert_eq!(result.unwrap_err(), ErrorKind::InvalidInputLength);
833+
assert!(matches!(result, Err(ErrorKind::InvalidInputLength)));
834834
}
835835

836836
#[test]
@@ -879,7 +879,7 @@ mod tests {
879879

880880
// Slice
881881
let slice_key: &[u8] = &[0u8; 32];
882-
let _slice_ref: &[u8] = slice_key.as_ref();
882+
let _slice_ref: &[u8] = slice_key;
883883

884884
// All should be compatible with the new API
885885
assert_eq!(_array_ref.len(), 32);

0 commit comments

Comments
 (0)