Skip to content

Commit 7af8cb9

Browse files
committed
Run the forgatter
1 parent b601439 commit 7af8cb9

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

src/policy/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ impl fmt::Display for LiftError {
8181
impl error::Error for LiftError {
8282
fn cause(&self) -> Option<&dyn error::Error> {
8383
match self {
84-
Self::HeightTimelockCombination | Self::BranchExceedResourceLimits | Self::RawDescriptorLift => None,
84+
Self::HeightTimelockCombination
85+
| Self::BranchExceedResourceLimits
86+
| Self::RawDescriptorLift => None,
8587
}
8688
}
8789
}

src/policy/semantic.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,9 @@ impl<Pk: MiniscriptKey> Policy<Pk> {
520520
Some(Self::Unsatisfiable)
521521
}
522522
}
523-
Self::Thresh(ref thresh) => Some(Self::Thresh(thresh.map_ref(|_| at_age.pop().unwrap()))),
523+
Self::Thresh(ref thresh) => {
524+
Some(Self::Thresh(thresh.map_ref(|_| at_age.pop().unwrap())))
525+
}
524526
_ => None,
525527
};
526528
match new_policy {
@@ -548,7 +550,9 @@ impl<Pk: MiniscriptKey> Policy<Pk> {
548550
Some(Self::Unsatisfiable)
549551
}
550552
}
551-
Self::Thresh(ref thresh) => Some(Self::Thresh(thresh.map_ref(|_| at_age.pop().unwrap()))),
553+
Self::Thresh(ref thresh) => {
554+
Some(Self::Thresh(thresh.map_ref(|_| at_age.pop().unwrap())))
555+
}
552556
_ => None,
553557
};
554558
match new_policy {
@@ -582,7 +586,12 @@ impl<Pk: MiniscriptKey> Policy<Pk> {
582586
for data in self.rtl_post_order_iter() {
583587
let minimum_n_key = match data.node {
584588
Self::Unsatisfiable => None,
585-
Self::Trivial | Self::After(..) | Self::Older(..) | Self::Sha256(..) | Self::Hash256(..) | Self::Ripemd160(..)
589+
Self::Trivial
590+
| Self::After(..)
591+
| Self::Older(..)
592+
| Self::Sha256(..)
593+
| Self::Hash256(..)
594+
| Self::Ripemd160(..)
586595
| Self::Hash160(..) => Some(0),
587596
Self::Key(..) => Some(1),
588597
Self::Thresh(ref thresh) => {

0 commit comments

Comments
 (0)