Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gumpt committed Feb 27, 2024
1 parent e309466 commit 5ba2494
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pingora-limits/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ pub mod inflight;
pub mod rate;

use ahash::RandomState;
use std::hash::{BuildHasher, Hash, Hasher};
use std::hash::Hash;

#[inline]
fn hash<T: Hash>(key: T, hasher: &RandomState) -> u64 {
let mut hasher = hasher.build_hasher();
key.hash(&mut hasher);
hasher.finish()
hasher.hash_one(&key)
}

0 comments on commit 5ba2494

Please sign in to comment.