From 67196d8371a397f71f20ffd31849e884d92cdf19 Mon Sep 17 00:00:00 2001 From: Sergey Vasilyev Date: Wed, 6 May 2020 00:40:53 +0300 Subject: [PATCH] Formatting fix --- crypto-primitives/src/merkle_tree/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto-primitives/src/merkle_tree/mod.rs b/crypto-primitives/src/merkle_tree/mod.rs index b76577a..9087149 100644 --- a/crypto-primitives/src/merkle_tree/mod.rs +++ b/crypto-primitives/src/merkle_tree/mod.rs @@ -163,7 +163,8 @@ impl MerkleHashTree

{ let mut cur_hash = tree[0].clone(); let root_hash = if cur_height < Self::HEIGHT as usize { while cur_height < (Self::HEIGHT - 1) as usize { - cur_hash = hash_inner_node::(¶meters, &cur_hash, &empty_hash, &mut buffer)?; + cur_hash = + hash_inner_node::(¶meters, &cur_hash, &empty_hash, &mut buffer)?; padding_tree.push((cur_hash.clone(), empty_hash.clone())); cur_height += 1; }