std: Unsafe-wrap HashMap::get_many_unchecked_mut

This commit is contained in:
Jubilee Young 2024-07-14 16:49:02 -07:00
parent 4572ed6389
commit 87d850dff0

View File

@ -1,5 +1,3 @@
#![allow(unsafe_op_in_unsafe_fn)]
#[cfg(test)]
mod tests;
@ -1020,7 +1018,7 @@ where
K: Borrow<Q>,
Q: Hash + Eq,
{
self.base.get_many_unchecked_mut(ks)
unsafe { self.base.get_many_unchecked_mut(ks) }
}
/// Returns `true` if the map contains a value for the specified key.