Skip to content

Commit

Permalink
Changed code to satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaiTRex committed Aug 25, 2022
1 parent 7edd34b commit c5835d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ macro_rules! internal_decoder_fn {
}

// Remove leading zeroes
while let Option::Some(b'0') = input.get(0) {
while let Option::Some(b'0') = input.first() {
input = &input[1..];
}
match input.len() {
Expand Down

0 comments on commit c5835d3

Please sign in to comment.