2025-06-15 automated rustfmt nightly
This commit is contained in:
parent
052514e6ff
commit
81dbfae0a8
|
@ -517,11 +517,7 @@ impl TransactionExtPriv for Transaction {
|
||||||
1
|
1
|
||||||
} else if witness_program.is_p2wsh() {
|
} else if witness_program.is_p2wsh() {
|
||||||
// Treat the last item of the witness as the witnessScript
|
// Treat the last item of the witness as the witnessScript
|
||||||
witness
|
witness.last().map(Script::from_bytes).map(|s| s.count_sigops()).unwrap_or(0)
|
||||||
.last()
|
|
||||||
.map(Script::from_bytes)
|
|
||||||
.map(|s| s.count_sigops())
|
|
||||||
.unwrap_or(0)
|
|
||||||
} else {
|
} else {
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
|
|
|
@ -779,7 +779,9 @@ impl TapTree {
|
||||||
|
|
||||||
/// Returns [`TapTreeIter<'_>`] iterator for a Taproot script tree, operating in DFS order over
|
/// Returns [`TapTreeIter<'_>`] iterator for a Taproot script tree, operating in DFS order over
|
||||||
/// tree [`ScriptLeaf`]s.
|
/// tree [`ScriptLeaf`]s.
|
||||||
pub fn script_leaves(&self) -> ScriptLeaves<'_> { ScriptLeaves { leaf_iter: self.0.leaf_nodes() } }
|
pub fn script_leaves(&self) -> ScriptLeaves<'_> {
|
||||||
|
ScriptLeaves { leaf_iter: self.0.leaf_nodes() }
|
||||||
|
}
|
||||||
|
|
||||||
/// Returns the root [`TapNodeHash`] of this tree.
|
/// Returns the root [`TapNodeHash`] of this tree.
|
||||||
pub fn root_hash(&self) -> TapNodeHash { self.0.hash }
|
pub fn root_hash(&self) -> TapNodeHash { self.0.hash }
|
||||||
|
|
|
@ -10,7 +10,6 @@ use core::ops;
|
||||||
|
|
||||||
#[cfg(feature = "arbitrary")]
|
#[cfg(feature = "arbitrary")]
|
||||||
use arbitrary::{Arbitrary, Unstructured};
|
use arbitrary::{Arbitrary, Unstructured};
|
||||||
|
|
||||||
use NumOpResult as R;
|
use NumOpResult as R;
|
||||||
|
|
||||||
use crate::{Amount, MathOp, NumOpError as E, NumOpResult, Weight};
|
use crate::{Amount, MathOp, NumOpError as E, NumOpResult, Weight};
|
||||||
|
|
Loading…
Reference in New Issue