Skip to content

Commit 0f38616

Browse files
committed
Auto merge of #200 - cuviper:from_key_hashed_nocheck, r=Amanieu
Remove from_key_hashed_nocheck's Q: Hash We don't need `Q: Hash` in `RawEntryBuilder::from_key_hashed_nocheck`, because a hash value is already provided. This makes it consistent with the same method on `RawEntryBuilderMut` that already lacked `Q: Hash`.
2 parents 81173a8 + fd27d5b commit 0f38616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ impl<'a, K, V, S> RawEntryBuilder<'a, K, V, S> {
15831583
pub fn from_key_hashed_nocheck<Q: ?Sized>(self, hash: u64, k: &Q) -> Option<(&'a K, &'a V)>
15841584
where
15851585
K: Borrow<Q>,
1586-
Q: Hash + Eq,
1586+
Q: Eq,
15871587
{
15881588
self.from_hash(hash, |q| q.borrow().eq(k))
15891589
}

0 commit comments

Comments
 (0)