aboutsummaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-06-13 17:22:33 +0200
committerAlex Auvolat <alex@adnab.me>2023-09-27 12:32:54 +0200
commit2484d7654ace3021cce024d301d575b8eef23ee9 (patch)
treed10ecdbc6a0afc06a5dbbe08e133a995ee279258 /src/util.rs
parentb7beb15492258b5cc9e408bcb00d549e8b50e176 (diff)
downloadnetapp-next-0.10.tar.gz
netapp-next-0.10.zip
update rmp-serde to v1.1, bump to 0.10.0next-0.10
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/util.rs b/src/util.rs
index edf8c49..56230b7 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -17,9 +17,7 @@ where
T: Serialize + ?Sized,
{
let mut wr = Vec::with_capacity(128);
- let mut se = rmp_serde::Serializer::new(&mut wr)
- .with_struct_map()
- .with_string_variants();
+ let mut se = rmp_serde::Serializer::new(&mut wr).with_struct_map();
val.serialize(&mut se)?;
Ok(wr)
}