From 89aa43632e274ebb09cc1565ccae3dedc833e4de Mon Sep 17 00:00:00 2001 From: Alexey Danilevich Date: Mon, 8 Nov 2021 19:55:40 +0300 Subject: [PATCH] 1.7.29 (#54) --- Cargo.toml | 2 +- src/bintree.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6d2d013..5583de4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ edition = "2018" build = "build.rs" name = "ton_block" -version = "1.7.28" +version = "1.7.29" [target.'cfg(target_arch = "wasm32")'.dependencies] clear_on_drop = { version = "0.2", features = ["no_cc"] } diff --git a/src/bintree.rs b/src/bintree.rs index aa34d10..584a813 100644 --- a/src/bintree.rs +++ b/src/bintree.rs @@ -81,7 +81,7 @@ where F: FnOnce(X, X) -> Result, X: Default + Serializable + Deserializable } else if let Some(x) = key.get_next_bit_opt() { if let Some(reference) = internal_merge(&data.reference(x)?.into(), key, merger)? { let mut cell = BuilderData::from_slice(data); - cell.replace_reference_cell(x, reference.into()); + cell.replace_reference_cell(x, reference.into_cell()?); return Ok(Some(cell)) } } else { @@ -110,7 +110,7 @@ where F: FnOnce(X) -> Result<(X, X)>, X: Default + Serializable + Deserializable if let Some(x) = key.get_next_bit_opt() { if let Some(reference) = internal_split(&data.reference(x)?.into(), key, splitter)? { let mut cell = BuilderData::from_slice(data); - cell.replace_reference_cell(x, reference.into()); + cell.replace_reference_cell(x, reference.into_cell()?); return Ok(Some(cell)) } }