File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -234,20 +234,7 @@ impl Map<String, Value> {
234
234
}
235
235
}
236
236
237
- #[ cfg( all( feature = "preserve_order" , not( no_btreemap_retain) ) ) ]
238
- /// Retains only the elements specified by the predicate.
239
- ///
240
- /// In other words, remove all pairs `(k, v)` such that `f(&k, &mut v)` returns `false`.
241
- /// The elements are visited in ascending key order.
242
- #[ inline]
243
- pub fn retain < F > ( & mut self , f : F )
244
- where
245
- F : FnMut ( & String , & mut Value ) -> bool ,
246
- {
247
- self . map . retain ( f) ;
248
- }
249
-
250
- #[ cfg( all( not( feature = "preserve_order" ) , not( no_btreemap_retain) ) ) ]
237
+ #[ cfg( not( no_btreemap_retain) ) ]
251
238
/// Retains only the elements specified by the predicate.
252
239
///
253
240
/// In other words, remove all pairs `(k, v)` such that `f(&k, &mut v)` returns `false`.
You can’t perform that action at this time.
0 commit comments