Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Nov 30, 2023
1 parent b624e68 commit b1bf587
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/primitives/src/trie/nibbles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ impl Nibbles {
/// If the number of nibbles is odd, the last nibble is shifted left by 4 bits and
/// added to the packed byte vector.
#[inline]
#[allow(clippy::collapsible_else_if)]
pub fn pack(&self) -> SmallVec<[u8; 32]> {
let is_odd = self.len() % 2 != 0;
// SAFETY: checked length and `is_odd` is correct.
Expand Down

0 comments on commit b1bf587

Please sign in to comment.