Skip to content

Commit 3408ea0

Browse files
fixup! ctap2::get_info: Fix field order for canonical CBOR
1 parent 3fecdfd commit 3408ea0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn parse_argument(additional_info: u8, value: &[u8]) -> (u64, usize) {
2626
fn parse_value<'a>(data: &'a [u8], path: &str) -> &'a [u8] {
2727
println!("Checking value {path}");
2828

29-
assert!(data.len() > 0, "CBOR value must not be empty");
29+
assert!(!data.is_empty(), "CBOR value must not be empty");
3030
let mut offset = 1;
3131
let major_type = (data[0] & 0b11100000) >> 5;
3232
let additional_info = data[0] & 0b00011111;

0 commit comments

Comments
 (0)