aboutsummaryrefslogtreecommitdiff
path: root/src/model/migrate.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/model/migrate.rs
parentd3d7df098b4188ea26d3cec29f2cc226d55d783e (diff)
downloadgarage-16e0a655d0d01e3871aee81a0a9660102d6df74e.tar.gz
garage-16e0a655d0d01e3871aee81a0a9660102d6df74e.zip
Update rmp-serde
Diffstat (limited to 'src/model/migrate.rs')
-rw-r--r--src/model/migrate.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/migrate.rs b/src/model/migrate.rs
index 25acb4b0..bfd9845b 100644
--- a/src/model/migrate.rs
+++ b/src/model/migrate.rs
@@ -28,7 +28,7 @@ impl Migrate {
let mut old_buckets = vec![];
for res in tree.iter().map_err(GarageError::from)? {
let (_k, v) = res.map_err(GarageError::from)?;
- let bucket = rmp_serde::decode::from_read_ref::<_, old_bucket::Bucket>(&v[..])
+ let bucket = rmp_serde::decode::from_slice::<old_bucket::Bucket>(&v[..])
.map_err(GarageError::from)?;
old_buckets.push(bucket);
}