mirror of
https://github.com/serde-rs/json.git
synced 2025-10-02 15:26:00 +00:00
Fix no-std preserve_order build
This commit is contained in:
parent
4e0d3499ce
commit
e8bb41c94c
@ -174,7 +174,7 @@ impl Map<String, Value> {
|
||||
#[inline]
|
||||
pub fn append(&mut self, other: &mut Self) {
|
||||
#[cfg(feature = "preserve_order")]
|
||||
for (k, v) in std::mem::replace(&mut other.map, MapImpl::default()) {
|
||||
for (k, v) in mem::replace(&mut other.map, MapImpl::default()) {
|
||||
self.map.insert(k, v);
|
||||
}
|
||||
#[cfg(not(feature = "preserve_order"))]
|
||||
|
Loading…
x
Reference in New Issue
Block a user