Fix clippy lint warnings (#1004)

This commit is contained in:
Jack T 2025-01-13 10:07:53 -08:00 • committed by GitHub
parent f33d1f1cc4
commit 55a207a275
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 69 additions and 76 deletions

View file

@ -19,10 +19,10 @@ impl<K: Hash + Eq, V: Eq> MultiMap<K, V> {
}
}
pub fn get<Q: ?Sized>(&self, k: &Q) -> &[V]
pub fn get<Q>(&self, k: &Q) -> &[V]
where
K: Borrow<Q>,
Q: Hash + Eq,
Q: Hash + Eq + ?Sized,
{
self.inner.get(k).map(Vec::as_slice).unwrap_or(&[])
}