[fmt-only] autoformatting with `rustfmt src/util/sighash.rs`

This commit is contained in:
Riccardo Casatta 2021-08-31 08:14:47 +02:00
parent 07774917c2
commit c9bc0b928a
No known key found for this signature in database
GPG Key ID: FD986A969E450397
1 changed files with 4 additions and 1 deletions

View File

@ -554,7 +554,10 @@ impl<R: Deref<Target = Transaction>> SigHashCache<R> {
Self::common_cache_minimal_borrow(&mut self.common_cache, &self.tx) Self::common_cache_minimal_borrow(&mut self.common_cache, &self.tx)
} }
fn common_cache_minimal_borrow<'a>(common_cache: &'a mut Option<CommonCache>, tx: &R) -> &'a CommonCache { fn common_cache_minimal_borrow<'a>(
common_cache: &'a mut Option<CommonCache>,
tx: &R,
) -> &'a CommonCache {
common_cache.get_or_insert_with(|| { common_cache.get_or_insert_with(|| {
let mut enc_prevouts = sha256::Hash::engine(); let mut enc_prevouts = sha256::Hash::engine();
let mut enc_sequences = sha256::Hash::engine(); let mut enc_sequences = sha256::Hash::engine();