Fix serde build.

This commit is contained in:
Stephen Chung
2021-03-29 18:46:32 +08:00
parent e306a92ea0
commit 3a6e6848fd
6 changed files with 27 additions and 22 deletions

View File

@@ -550,7 +550,7 @@ impl SerializeMap for DynamicSerializer {
})?;
let _value = _value.serialize(&mut *self)?;
let map = self._value.downcast_mut::<Map>().unwrap();
map.insert(key, _value);
map.insert(key.into(), _value);
Ok(())
}
#[cfg(feature = "no_object")]
@@ -575,7 +575,7 @@ impl SerializeMap for DynamicSerializer {
})?;
let _value = _value.serialize(&mut *self)?;
let map = self._value.downcast_mut::<Map>().unwrap();
map.insert(_key, _value);
map.insert(_key.into(), _value);
Ok(())
}
#[cfg(feature = "no_object")]