Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Oct 10, 2022
1 parent 69aa4c8 commit efade4c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packable/packable/tests/bool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fn packable_bool_packed_non_zero_bytes_are_truthy() {
let mut packer = Vec::default();
42u8.pack(&mut packer).unwrap();

let is_true = bool::unpack_verified(&mut packer.as_slice(), &()).unwrap();
let is_true = bool::unpack_verified(packer.as_slice(), &()).unwrap();

assert!(is_true);
}
2 changes: 1 addition & 1 deletion packable/packable/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ where

let mut vec = Vec::new();
packable.pack(&mut vec).unwrap();
let unpacked = P::unpack_verified(&mut vec.as_slice(), &()).unwrap();
let unpacked = P::unpack_verified(vec.as_slice(), &()).unwrap();
assert_eq!(packable, &unpacked);

// Tests for `Read` and `Write`
Expand Down
2 changes: 1 addition & 1 deletion prefix-hex/tests/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fn array_encode() {
#[test]
fn array_reference_encode() {
assert_eq!(
prefix_hex::encode(&[0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef]),
prefix_hex::encode([0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef]),
"0x0123456789abcdef"
);
}
Expand Down

0 comments on commit efade4c

Please sign in to comment.