File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments