From fec6a7669e4bb8b3d61c2e09013e67d311b7549a Mon Sep 17 00:00:00 2001 From: Fmt Bot Date: Sun, 19 Jan 2025 01:19:33 +0000 Subject: [PATCH] 2025-01-19 automated rustfmt nightly --- bitcoin/examples/sighash.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bitcoin/examples/sighash.rs b/bitcoin/examples/sighash.rs index 079d4d0f2..15439b46c 100644 --- a/bitcoin/examples/sighash.rs +++ b/bitcoin/examples/sighash.rs @@ -125,12 +125,7 @@ fn compute_sighash_p2wsh(raw_tx: &[u8], inp_idx: usize, amount: Amount) { assert!((70..=72).contains(&sig_len), "signature length {} out of bounds", sig_len); //here we assume that all sighash_flags are the same. Can they be different? let sighash = cache - .p2wsh_signature_hash( - inp_idx, - witness_script, - amount, - sig.sighash_type, - ) + .p2wsh_signature_hash(inp_idx, witness_script, amount, sig.sighash_type) .expect("failed to compute sighash"); println!("SegWit p2wsh sighash: {:x} ({})", sighash, sig.sighash_type); }