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/garage/repair.rs | |
parent | d3d7df098b4188ea26d3cec29f2cc226d55d783e (diff) | |
download | garage-16e0a655d0d01e3871aee81a0a9660102d6df74e.tar.gz garage-16e0a655d0d01e3871aee81a0a9660102d6df74e.zip |
Update rmp-serde
Diffstat (limited to 'src/garage/repair.rs')
-rw-r--r-- | src/garage/repair.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |