diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-03 14:16:30 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-03 14:16:30 +0200 |
commit | 16e0a655d0d01e3871aee81a0a9660102d6df74e (patch) | |
tree | dacb8b88e3ac4f559111ce3f03f6e8fb977b25ee /src/util/persister.rs | |
parent | d3d7df098b4188ea26d3cec29f2cc226d55d783e (diff) | |
download | garage-16e0a655d0d01e3871aee81a0a9660102d6df74e.tar.gz garage-16e0a655d0d01e3871aee81a0a9660102d6df74e.zip |
Update rmp-serde
Diffstat (limited to 'src/util/persister.rs')
-rw-r--r-- | src/util/persister.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/persister.rs b/src/util/persister.rs index 9e1a1910..d0759db7 100644 --- a/src/util/persister.rs +++ b/src/util/persister.rs @@ -33,7 +33,7 @@ where let mut bytes = vec![]; file.read_to_end(&mut bytes)?; - let value = rmp_serde::decode::from_read_ref(&bytes[..])?; + let value = rmp_serde::decode::from_slice(&bytes[..])?; Ok(value) } @@ -57,7 +57,7 @@ where let mut bytes = vec![]; file.read_to_end(&mut bytes).await?; - let value = rmp_serde::decode::from_read_ref(&bytes[..])?; + let value = rmp_serde::decode::from_slice(&bytes[..])?; Ok(value) } |