aboutsummaryrefslogtreecommitdiff
path: root/src/garage
diff options
context:
space:
mode:
Diffstat (limited to 'src/garage')
-rw-r--r--src/garage/Cargo.toml2
-rw-r--r--src/garage/repair.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/garage/Cargo.toml b/src/garage/Cargo.toml
index eb643160..d5299291 100644
--- a/src/garage/Cargo.toml
+++ b/src/garage/Cargo.toml
@@ -37,7 +37,7 @@ rand = "0.8"
async-trait = "0.1.7"
sodiumoxide = { version = "0.2.5-0", package = "kuska-sodiumoxide" }
-rmp-serde = "0.15"
+rmp-serde = "1.1"
serde = { version = "1.0", default-features = false, features = ["derive", "rc"] }
serde_bytes = "0.11"
structopt = { version = "0.3", default-features = false }
diff --git a/src/garage/repair.rs b/src/garage/repair.rs
index cdcfc90f..1ae26181 100644
--- a/src/garage/repair.rs
+++ b/src/garage/repair.rs
@@ -81,7 +81,7 @@ impl Repair {
info!("repair_versions: {}", i);
}
- let version = rmp_serde::decode::from_read_ref::<_, Version>(&item_bytes)?;
+ let version = rmp_serde::decode::from_slice::<Version>(&item_bytes)?;
if version.deleted.get() {
continue;
}
@@ -133,7 +133,7 @@ impl Repair {
info!("repair_block_ref: {}", i);
}
- let block_ref = rmp_serde::decode::from_read_ref::<_, BlockRef>(&item_bytes)?;
+ let block_ref = rmp_serde::decode::from_slice::<BlockRef>(&item_bytes)?;
if block_ref.deleted.get() {
continue;
}