Skip to content

Commit 34f77df

Browse files
committed
cargo fmt
1 parent 9ad1495 commit 34f77df

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

src/descriptor/tr.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -468,13 +468,11 @@ impl_from_tree!(
468468
let ret = Self::parse_tr_script_spend(tree)?;
469469
Tr::new(expression::terminal(key, Pk::from_str)?, Some(ret))
470470
}
471-
_ => {
472-
Err(Error::Unexpected(format!(
473-
"{}[#{} args] while parsing taproot descriptor",
474-
top.name,
475-
top.args.len()
476-
)))
477-
}
471+
_ => Err(Error::Unexpected(format!(
472+
"{}[#{} args] while parsing taproot descriptor",
473+
top.name,
474+
top.args.len()
475+
))),
478476
}
479477
} else {
480478
Err(Error::Unexpected(format!(

src/policy/concrete.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -894,9 +894,7 @@ impl<Pk: MiniscriptKey> Policy<Pk> {
894894
TimelockInfo::combine_threshold(subs.len(), iter)
895895
}
896896
Policy::Or(ref subs) => {
897-
let iter = subs
898-
.iter()
899-
.map(|(_p, sub)| sub.check_timelocks_helper());
897+
let iter = subs.iter().map(|(_p, sub)| sub.check_timelocks_helper());
900898
TimelockInfo::combine_threshold(1, iter)
901899
}
902900
}

0 commit comments

Comments
 (0)