From a77efd7ca6a02b9c668607e67efcaeeafd36a8bd Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 6 Jun 2022 14:02:02 +0200 Subject: Safe choice: revert "Update rmp-serde" This reverts commit 16e0a655d0d01e3871aee81a0a9660102d6df74e. --- src/garage/repair.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/garage/repair.rs') diff --git a/src/garage/repair.rs b/src/garage/repair.rs index ae28f351..75828f24 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_slice::(&item_bytes)?; + let version = rmp_serde::decode::from_read_ref::<_, 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_slice::(&item_bytes)?; + let block_ref = rmp_serde::decode::from_read_ref::<_, BlockRef>(&item_bytes)?; if block_ref.deleted.get() { continue; } -- cgit v1.2.3