From 627f7f16618e5c33245a2d0edb9bc324139cd3ec Mon Sep 17 00:00:00 2001 From: Peilun Li Date: Sat, 14 Sep 2024 06:12:44 +0800 Subject: [PATCH] Fix clippy. --- common/append_merkle/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/common/append_merkle/src/lib.rs b/common/append_merkle/src/lib.rs index 6fd0404..55fe806 100644 --- a/common/append_merkle/src/lib.rs +++ b/common/append_merkle/src/lib.rs @@ -207,7 +207,6 @@ impl> AppendMerkleTree { pub fn fill_leaf(&mut self, index: usize, leaf: E) { if leaf == E::null() { // fill leaf with null is not allowed. - return; } else if self.layers[0][index] == E::null() { self.layers[0][index] = leaf; self.recompute_after_fill_leaves(index, index + 1);