partial clippy fixes

This commit is contained in:
Anton-4 2023-12-27 17:46:56 +01:00
parent 26f0448a94
commit 2ac6243e72
No known key found for this signature in database
GPG key ID: 0971D718C0A9B937
2 changed files with 6 additions and 6 deletions

View file

@ -255,9 +255,9 @@ mod tests {
decode_u32(&[0xff, 0xff, 0xff, 0xff, 0x0f]),
Ok((u32::MAX, MAX_SIZE_ENCODED_U32))
);
assert!(matches!(decode_u32(&[0x80; 6]), Err(_)));
assert!(matches!(decode_u32(&[0x80; 2]), Err(_)));
assert!(matches!(decode_u32(&[]), Err(_)));
assert!(decode_u32(&[0x80; 6]).is_err());
assert!(decode_u32(&[0x80; 2]).is_err());
assert!(decode_u32(&[]).is_err());
}
#[test]