diff --git a/src/map.rs b/src/map.rs index 665102b00..a6bdb6af3 100644 --- a/src/map.rs +++ b/src/map.rs @@ -240,7 +240,7 @@ impl Map { /// In other words, remove all pairs `(k, v)` such that `f(&k, &mut v)` returns `false`. /// The elements are visited in ascending key order. #[inline] - pub fn retain(&mut self, f: F) + pub fn retain(&mut self, f: F) where F: FnMut(&String, &mut Value) -> bool, {