Skip to content

Commit

Permalink
chore(core): more clippy complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
iamwacko committed Feb 16, 2024
1 parent 50901cc commit ec7534e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/graph/unique.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::graph::prelude::{Error, Rng, Token, TryFilterMap, TryGeneratorExt, Va
use crate::Graph;

use std::collections::HashMap;
use std::hash::{BuildHasher, Hash, Hasher};
use std::hash::{Hash, Hasher};

const MAX_RETRIES: usize = 64;

Expand All @@ -21,7 +21,7 @@ impl UniqueNode {
pub fn hash(inner: Graph, retries: Option<usize>) -> Self {
let mut seen: HashMap<u64, usize> = HashMap::new();
let filter = move |value: Value| {
let hash = seen.hasher().hash_one(&mut hasher);
let hash = seen.hasher().hash_one(&value);

let count = seen
.entry(hash)
Expand Down

0 comments on commit ec7534e

Please sign in to comment.