Skip to content

Commit

Permalink
fix function signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Karn committed Nov 12, 2021
1 parent 29a58a3 commit 68d3b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ impl Map<String, Value> {
/// 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<F, K>(&mut self, f: F)
pub fn retain<F>(&mut self, f: F)
where
F: FnMut(&String, &mut Value) -> bool,
{
Expand Down

0 comments on commit 68d3b45

Please sign in to comment.