aboutsummaryrefslogtreecommitdiff
path: root/src/model/migrate.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-06 14:02:02 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-06 14:02:02 +0200
commita77efd7ca6a02b9c668607e67efcaeeafd36a8bd (patch)
treec6313bf6fdba527cddc8971d30917ceefda9d6d3 /src/model/migrate.rs
parent7f2cf0b809f1fc5741990e2bfff94dc3ec41a04f (diff)
downloadgarage-a77efd7ca6a02b9c668607e67efcaeeafd36a8bd.tar.gz
garage-a77efd7ca6a02b9c668607e67efcaeeafd36a8bd.zip
Safe choice: revert "Update rmp-serde"
This reverts commit 16e0a655d0d01e3871aee81a0a9660102d6df74e.
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 bfd9845b..25acb4b0 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_slice::<old_bucket::Bucket>(&v[..])
+ let bucket = rmp_serde::decode::from_read_ref::<_, old_bucket::Bucket>(&v[..])
.map_err(GarageError::from)?;
old_buckets.push(bucket);
}