aboutsummaryrefslogtreecommitdiff
path: root/src/util/persister.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-03 14:16:30 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-03 14:16:30 +0200
commit16e0a655d0d01e3871aee81a0a9660102d6df74e (patch)
treedacb8b88e3ac4f559111ce3f03f6e8fb977b25ee /src/util/persister.rs
parentd3d7df098b4188ea26d3cec29f2cc226d55d783e (diff)
downloadgarage-16e0a655d0d01e3871aee81a0a9660102d6df74e.tar.gz
garage-16e0a655d0d01e3871aee81a0a9660102d6df74e.zip
Update rmp-serde
Diffstat (limited to 'src/util/persister.rs')
-rw-r--r--src/util/persister.rs4
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)
}