Skip to content

Commit

Permalink
std: Unsafe-wrap HashMap::get_many_unchecked_mut
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Jul 14, 2024
1 parent ac0fd27 commit 4679f9a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions std/src/collections/hash/map.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(unsafe_op_in_unsafe_fn)]

#[cfg(test)]
mod tests;

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 4679f9a

Please sign in to comment.