]> git.lizzy.rs Git - rust.git/blobdiff - src/mono_hash_map.rs
Auto merge of #2427 - Nilstrieb:doc-fix, r=saethlin
[rust.git] / src / mono_hash_map.rs
index 1ae2083d5661c852e377b003044023b4fefa9363..45057632df9b528274b767cbc76c4f87a8eeeb52 100644 (file)
@@ -61,7 +61,7 @@ fn remove<Q: ?Sized + Hash + Eq>(&mut self, k: &Q) -> Option<V>
 
     #[inline(always)]
     fn filter_map_collect<T>(&self, mut f: impl FnMut(&K, &V) -> Option<T>) -> Vec<T> {
-        self.0.borrow().iter().filter_map(move |(k, v)| f(k, &*v)).collect()
+        self.0.borrow().iter().filter_map(move |(k, v)| f(k, v)).collect()
     }
 
     /// The most interesting method: Providing a shared reference without