Skip to content

Commit 924968b

Browse files
committed
der: cargo clippy fixes
1 parent 51b6394 commit 924968b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

der/src/asn1/integer/uint.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,11 @@ pub(crate) fn decode_to_slice(bytes: &[u8]) -> result::Result<&[u8], ErrorKind>
329329
// integer (since we're decoding an unsigned integer).
330330
// We expect all such cases to have a leading `0x00` byte.
331331
match bytes {
332-
[] => Err(Tag::Integer.non_canonical_error().into()),
332+
[] => Err(Tag::Integer.non_canonical_error()),
333333
[0] => Ok(bytes),
334-
[0, byte, ..] if *byte < 0x80 => Err(Tag::Integer.non_canonical_error().into()),
334+
[0, byte, ..] if *byte < 0x80 => Err(Tag::Integer.non_canonical_error()),
335335
[0, rest @ ..] => Ok(rest),
336-
[byte, ..] if *byte >= 0x80 => Err(Tag::Integer.value_error().into()),
336+
[byte, ..] if *byte >= 0x80 => Err(Tag::Integer.value_error()),
337337
_ => Ok(bytes),
338338
}
339339
}

0 commit comments

Comments
 (0)