diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-06 14:02:02 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-06 14:02:02 +0200 |
commit | a77efd7ca6a02b9c668607e67efcaeeafd36a8bd (patch) | |
tree | c6313bf6fdba527cddc8971d30917ceefda9d6d3 /src/model/s3 | |
parent | 7f2cf0b809f1fc5741990e2bfff94dc3ec41a04f (diff) | |
download | garage-a77efd7ca6a02b9c668607e67efcaeeafd36a8bd.tar.gz garage-a77efd7ca6a02b9c668607e67efcaeeafd36a8bd.zip |
Safe choice: revert "Update rmp-serde"
This reverts commit 16e0a655d0d01e3871aee81a0a9660102d6df74e.
Diffstat (limited to 'src/model/s3')
-rw-r--r-- | src/model/s3/object_table.rs | 2 | ||||
-rw-r--r-- | src/model/s3/version_table.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/model/s3/object_table.rs b/src/model/s3/object_table.rs index c242b325..3d9a89f7 100644 --- a/src/model/s3/object_table.rs +++ b/src/model/s3/object_table.rs @@ -270,7 +270,7 @@ impl TableSchema for ObjectTable { } fn try_migrate(bytes: &[u8]) -> Option<Self::E> { - let old_obj = rmp_serde::decode::from_slice::<old::Object>(bytes).ok()?; + let old_obj = rmp_serde::decode::from_read_ref::<_, old::Object>(bytes).ok()?; Some(migrate_object(old_obj)) } } diff --git a/src/model/s3/version_table.rs b/src/model/s3/version_table.rs index f67f2ff1..ad096772 100644 --- a/src/model/s3/version_table.rs +++ b/src/model/s3/version_table.rs @@ -168,7 +168,7 @@ impl TableSchema for VersionTable { } fn try_migrate(bytes: &[u8]) -> Option<Self::E> { - let old = rmp_serde::decode::from_slice::<old::Version>(bytes).ok()?; + let old = rmp_serde::decode::from_read_ref::<_, old::Version>(bytes).ok()?; let blocks = old .blocks |