From fc2c1d26b88f0df2b0014fdbbc1bbd175a01d438 Mon Sep 17 00:00:00 2001 From: Ron Kuris Date: Mon, 4 Mar 2024 19:50:28 +0000 Subject: [PATCH] Use the typed encoder, not always Bincode (#573) --- firewood/src/merkle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firewood/src/merkle.rs b/firewood/src/merkle.rs index c20e54d77..70196ec0e 100644 --- a/firewood/src/merkle.rs +++ b/firewood/src/merkle.rs @@ -144,7 +144,7 @@ where } }; - Bincode::serialize(&encoded).map_err(|e| MerkleError::BinarySerdeError(e.to_string())) + T::serialize(&encoded).map_err(|e| MerkleError::BinarySerdeError(e.to_string())) } #[allow(dead_code)]