Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-shandar committed Feb 22, 2024
1 parent e49c0d6 commit 838cb6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockset-lib/src/forest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub mod tree_add;

const EMPTY: U224 = root(&[0, 0]);

fn get_len(v: &Vec<u8>) -> Option<usize> {
fn get_len(v: &[u8]) -> Option<usize> {
let len = *v.first().unwrap();
if len == 0x20 {
None
Expand Down

0 comments on commit 838cb6c

Please sign in to comment.