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/model/key_table.rs | |
parent | d3d7df098b4188ea26d3cec29f2cc226d55d783e (diff) | |
download | garage-16e0a655d0d01e3871aee81a0a9660102d6df74e.tar.gz garage-16e0a655d0d01e3871aee81a0a9660102d6df74e.zip |
Update rmp-serde
Diffstat (limited to 'src/model/key_table.rs')
-rw-r--r-- | src/model/key_table.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/key_table.rs b/src/model/key_table.rs index 330e83f0..852bf607 100644 --- a/src/model/key_table.rs +++ b/src/model/key_table.rs @@ -175,7 +175,7 @@ impl TableSchema for KeyTable { } fn try_migrate(bytes: &[u8]) -> Option<Self::E> { - let old_k = rmp_serde::decode::from_read_ref::<_, old::Key>(bytes).ok()?; + let old_k = rmp_serde::decode::from_slice::<old::Key>(bytes).ok()?; let name = crdt::Lww::raw(old_k.name.timestamp(), old_k.name.get().clone()); let state = if old_k.deleted.get() { |