Fix clippy.

This commit is contained in:
Peilun Li 2024-09-14 06:12:44 +08:00
parent 40a289f0d5
commit 627f7f1661

View File

@ -207,7 +207,6 @@ impl<E: HashElement, A: Algorithm<E>> AppendMerkleTree<E, A> {
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);