Skip to content

Commit 5958fa6

Browse files
committed
Use explicit dyn trait object
1 parent edc2fb5 commit 5958fa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mono_hash_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use crate::AllocMap;
1818
pub struct MonoHashMap<K: Hash + Eq, V>(RefCell<FxHashMap<K, Box<V>>>);
1919

2020
impl<K: Hash + Eq, V> MonoHashMap<K, V> {
21-
pub fn values<T>(&self, f: impl FnOnce(&mut Iterator<Item=&V>) -> T) -> T {
21+
pub fn values<T>(&self, f: impl FnOnce(&mut dyn Iterator<Item=&V>) -> T) -> T {
2222
f(&mut self.0.borrow().values().map(|v| &**v))
2323
}
2424
}

0 commit comments

Comments
 (0)