We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a146f65 commit 749b3efCopy full SHA for 749b3ef
src/decode.rs
@@ -34,7 +34,9 @@ where
34
#[cfg(feature = "msgpack")]
35
#[inline]
36
pub fn from_msgpack(bytes: &[u8]) -> Result<Self, rmp_serde::decode::Error> {
37
- rmp_serde::from_slice(bytes).map(Self)
+ let mut deserializer = rmp_serde::Deserializer::new(bytes).with_human_readable();
38
+
39
+ serde::Deserialize::deserialize(&mut deserializer).map(Self)
40
}
41
42
/// Attemps to deserialize the given bytes as [CBOR](https://cbor.io).
0 commit comments