update backend dependencies (#1796)

* update backend dependencies

* update compat
This commit is contained in:
Aiden McClelland
2022-09-12 13:20:40 -06:00
committed by GitHub
parent 27f9869b38
commit 5564154da2
11 changed files with 191 additions and 162 deletions

View File

@@ -337,7 +337,9 @@ impl IoFormat {
IoFormat::JsonPretty => {
serde_json::to_vec_pretty(value).with_kind(crate::ErrorKind::Serialization)
}
IoFormat::Yaml => serde_yaml::to_vec(value).with_kind(crate::ErrorKind::Serialization),
IoFormat::Yaml => serde_yaml::to_string(value)
.with_kind(crate::ErrorKind::Serialization)
.map(|s| s.into_bytes()),
IoFormat::Cbor => {
let mut res = Vec::new();
serde_cbor::ser::into_writer(value, &mut res)