Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan-bailey committed Aug 17, 2024
1 parent 103034a commit 5bbfc4c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kermit-kvs/src/naivestore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ where
HB: BuildHasher,
{
fn add(&mut self, val: VT) -> u64 {
let mut hasher = self.hash_builder.build_hasher();
val.hash(&mut hasher);
let hash = hasher.finish();
let hash = self.hash_builder.hash_one(&val);
self.map.insert(hash, val);
hash
}
Expand Down

0 comments on commit 5bbfc4c

Please sign in to comment.