1
0
Fork 0
mirror of https://codeberg.org/icewind/bitbuffer.git synced 2026-06-03 08:34:07 +02:00

clippy fixes

This commit is contained in:
Robin Appelman 2024-04-03 19:47:06 +02:00
commit 2fe6af6224
2 changed files with 3 additions and 3 deletions

View file

@ -403,7 +403,7 @@ fn read_sized_trait_unchecked() {
#[derive(BitRead, PartialEq, Debug)]
struct TestStruct {
foo: u8,
byte: u8,
str: String,
#[size = 2]
truncated: String,
@ -443,7 +443,7 @@ fn test_read_struct() {
let mut stream = BitReadStream::from(buffer);
assert_eq!(
TestStruct {
foo: 12,
byte: 12,
str: "hello".to_owned(),
truncated: "fo".to_owned(),
bar: 'o' as u16,

View file

@ -241,5 +241,5 @@ fn test_write_last_slice() {
let mut read = BitReadStream::from(BitReadBuffer::new(&data[..], LittleEndian));
assert_eq!(0b1000, read.read_int::<u8>(4).unwrap());
assert_eq!(true, read.read_bool().unwrap());
assert!(read.read_bool().unwrap());
}