mirror of
https://github.com/serde-rs/json.git
synced 2025-09-30 06:21:34 +00:00
chore: Remove no_btreemap_retain feature from build.rs
This commit is contained in:
parent
0daacdd52e
commit
d0c979aaf1
6
build.rs
6
build.rs
@ -33,12 +33,6 @@ fn main() {
|
||||
if minor < 45 {
|
||||
println!("cargo:rustc-cfg=no_btreemap_remove_entry");
|
||||
}
|
||||
|
||||
// BTreeMap::retain
|
||||
// https://blog.rust-lang.org/2021/06/17/Rust-1.53.0.html#stabilized-apis
|
||||
if minor < 53 {
|
||||
println!("cargo:rustc-cfg=no_btreemap_retain");
|
||||
}
|
||||
}
|
||||
|
||||
fn rustc_minor_version() -> Option<u32> {
|
||||
|
@ -276,7 +276,6 @@ impl Map<String, Value> {
|
||||
///
|
||||
/// In other words, remove all pairs `(k, v)` such that `f(&k, &mut v)`
|
||||
/// returns `false`.
|
||||
#[cfg(not(no_btreemap_retain))]
|
||||
#[inline]
|
||||
pub fn retain<F>(&mut self, f: F)
|
||||
where
|
||||
|
@ -35,7 +35,6 @@ fn test_append() {
|
||||
assert!(val.is_empty());
|
||||
}
|
||||
|
||||
#[cfg(not(no_btreemap_retain))]
|
||||
#[test]
|
||||
fn test_retain() {
|
||||
let mut v: Value = from_str(r#"{"b":null,"a":null,"c":null}"#).unwrap();
|
||||
|
Loading…
x
Reference in New Issue
Block a user