mirror of
https://codeberg.org/icewind/bitbuffer.git
synced 2026-06-03 16:44:06 +02:00
clippy fixes
This commit is contained in:
parent
7422800014
commit
2fe6af6224
2 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue