From c9bc0b928af51a9eabe05c27c6cf5316c547cf3d Mon Sep 17 00:00:00 2001 From: Riccardo Casatta Date: Tue, 31 Aug 2021 08:14:47 +0200 Subject: [PATCH] [fmt-only] autoformatting with `rustfmt src/util/sighash.rs` --- src/util/sighash.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util/sighash.rs b/src/util/sighash.rs index b00c9588..66ea4253 100644 --- a/src/util/sighash.rs +++ b/src/util/sighash.rs @@ -554,7 +554,10 @@ impl> SigHashCache { Self::common_cache_minimal_borrow(&mut self.common_cache, &self.tx) } - fn common_cache_minimal_borrow<'a>(common_cache: &'a mut Option, tx: &R) -> &'a CommonCache { + fn common_cache_minimal_borrow<'a>( + common_cache: &'a mut Option, + tx: &R, + ) -> &'a CommonCache { common_cache.get_or_insert_with(|| { let mut enc_prevouts = sha256::Hash::engine(); let mut enc_sequences = sha256::Hash::engine();