From 6d84998168d39099528cb7b1a3b40b8066db761b Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Mon, 24 Jan 2022 11:26:04 +1100 Subject: [PATCH] Improve braces usage Add a pair of braces to improve readability. --- src/blockdata/block.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blockdata/block.rs b/src/blockdata/block.rs index 3eff063d..56482f90 100644 --- a/src/blockdata/block.rs +++ b/src/blockdata/block.rs @@ -238,14 +238,14 @@ impl Block { /// Computes the merkle root of transactions hashed for witness. pub fn witness_root(&self) -> Option { - let hashes = self.txdata.iter().enumerate().map(|(i, t)| + let hashes = self.txdata.iter().enumerate().map(|(i, t)| { if i == 0 { // Replace the first hash with zeroes. Wtxid::default().as_hash() } else { t.wtxid().as_hash() } - ); + }); bitcoin_merkle_root(hashes).map(|h| h.into()) }