mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 00:01:34 +11:00
Don't manually implement hash_one
This commit is contained in:
parent
53685b0410
commit
426890e856
|
@ -470,9 +470,7 @@ where
|
|||
K: Borrow<Q>,
|
||||
Q: Hash + ?Sized,
|
||||
{
|
||||
let mut hasher = self.hasher.build_hasher();
|
||||
key.hash(&mut hasher);
|
||||
let result = hasher.finish();
|
||||
let result = self.hasher.hash_one(key);
|
||||
|
||||
// we want to allow truncation here since we're reducing 64 bits to 32
|
||||
#[allow(clippy::cast_possible_truncation)]
|
||||
|
|
Loading…
Reference in a new issue