aboutsummaryrefslogtreecommitdiff
path: root/src/model/s3
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-03 14:16:30 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-03 14:16:30 +0200
commit16e0a655d0d01e3871aee81a0a9660102d6df74e (patch)
treedacb8b88e3ac4f559111ce3f03f6e8fb977b25ee /src/model/s3
parentd3d7df098b4188ea26d3cec29f2cc226d55d783e (diff)
downloadgarage-16e0a655d0d01e3871aee81a0a9660102d6df74e.tar.gz
garage-16e0a655d0d01e3871aee81a0a9660102d6df74e.zip
Update rmp-serde
Diffstat (limited to 'src/model/s3')
-rw-r--r--src/model/s3/object_table.rs2
-rw-r--r--src/model/s3/version_table.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/model/s3/object_table.rs b/src/model/s3/object_table.rs
index 3d9a89f7..c242b325 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_read_ref::<_, old::Object>(bytes).ok()?;
+ let old_obj = rmp_serde::decode::from_slice::<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 ad096772..f67f2ff1 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_read_ref::<_, old::Version>(bytes).ok()?;
+ let old = rmp_serde::decode::from_slice::<old::Version>(bytes).ok()?;
let blocks = old
.blocks