From 16e0a655d0d01e3871aee81a0a9660102d6df74e Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 3 Jun 2022 14:16:30 +0200 Subject: Update rmp-serde --- src/model/migrate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/model/migrate.rs') 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::(&v[..]) .map_err(GarageError::from)?; old_buckets.push(bucket); } -- cgit v1.2.3