Skip to content

Commit

Permalink
Clippy fixes and removed some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
BGluth committed Feb 6, 2024
1 parent ce863e5 commit 48c5d32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nibbles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,9 @@ impl Nibbles {
let hex_string_raw = hex_encode_f(&byte_buf[(64 - count_bytes)..64]);
let hex_char_iter_raw = hex_string_raw.chars();


// We need this skip to make both match arms have the same type.
#[allow(clippy::iter_skip_zero)]
let mut hex_string = String::from("0x");
match is_even(self.count) {
false => hex_string.extend(hex_char_iter_raw.skip(1)),
Expand Down

0 comments on commit 48c5d32

Please sign in to comment.