diff options
author | Alex Auvolat <alex@adnab.me> | 2023-06-13 17:22:33 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-06-13 17:29:52 +0200 |
commit | 3549f9287bd20f97e7107f587887cec167df7e77 (patch) | |
tree | f850f4f9bc78e8e8bb3ed519aa1ea523965cad2a /src/message.rs | |
parent | 34aade6ce9ccc9789d045fa11bd6bb8af421849e (diff) | |
download | netapp-3549f9287bd20f97e7107f587887cec167df7e77.tar.gz netapp-3549f9287bd20f97e7107f587887cec167df7e77.zip |
update rmp-serde to v1.1v0.5.3
Diffstat (limited to 'src/message.rs')
-rw-r--r-- | src/message.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message.rs b/src/message.rs index cd40ea7..b0d255c 100644 --- a/src/message.rs +++ b/src/message.rs @@ -155,7 +155,7 @@ impl<M: Message> Req<M> { } pub(crate) fn from_enc(enc: ReqEnc) -> Result<Self, rmp_serde::decode::Error> { - let msg = rmp_serde::decode::from_read_ref(&enc.msg)?; + let msg = rmp_serde::decode::from_slice(&enc.msg)?; Ok(Req { msg: Arc::new(msg), msg_ser: Some(enc.msg), @@ -316,7 +316,7 @@ impl<M: Message> Resp<M> { } pub(crate) fn from_enc(enc: RespEnc) -> Result<Self, Error> { - let msg = rmp_serde::decode::from_read_ref(&enc.msg)?; + let msg = rmp_serde::decode::from_slice(&enc.msg)?; Ok(Self { _phantom: Default::default(), msg, |