Skip to content

Commit

Permalink
don't include indexmap retain without BTreeMap retain
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Karn committed Nov 12, 2021
1 parent eaa1a31 commit 29a58a3
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 @@ -247,7 +247,7 @@ impl Map<String, Value> {
self.map.retain(f);
}

#[cfg(not(feature = "preserve_order"))]
#[cfg(all(not(feature = "preserve_order"), not(no_btreemap_retain)))]
/// Retains only the elements specified by the predicate.
///
/// In other words, remove all pairs `(k, v)` such that `f(&k, &mut v)` returns `false`.
Expand Down

0 comments on commit 29a58a3

Please sign in to comment.