aboutsummaryrefslogtreecommitdiff
path: root/src/table/merkle.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/table/merkle.rs')
-rw-r--r--src/table/merkle.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/table/merkle.rs b/src/table/merkle.rs
index dc67e8b7..138f3ca3 100644
--- a/src/table/merkle.rs
+++ b/src/table/merkle.rs
@@ -354,7 +354,7 @@ impl MerkleNode {
fn decode_opt(ent: &Option<db::Value>) -> Result<Self, Error> {
match ent {
None => Ok(MerkleNode::Empty),
- Some(v) => Ok(rmp_serde::decode::from_slice::<MerkleNode>(&v[..])?),
+ Some(v) => Ok(rmp_serde::decode::from_read_ref::<_, MerkleNode>(&v[..])?),
}
}