Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clippy warnings #61

Merged
merged 1 commit into from
Oct 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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