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