We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dyn
1 parent edc2fb5 commit 5958fa6Copy full SHA for 5958fa6
src/mono_hash_map.rs
@@ -18,7 +18,7 @@ use crate::AllocMap;
18
pub struct MonoHashMap<K: Hash + Eq, V>(RefCell<FxHashMap<K, Box<V>>>);
19
20
impl<K: Hash + Eq, V> MonoHashMap<K, V> {
21
- pub fn values<T>(&self, f: impl FnOnce(&mut Iterator<Item=&V>) -> T) -> T {
+ pub fn values<T>(&self, f: impl FnOnce(&mut dyn Iterator<Item=&V>) -> T) -> T {
22
f(&mut self.0.borrow().values().map(|v| &**v))
23
}
24
0 commit comments