Skip to content

Commit 6ed3bbb

Browse files
committed
avoid useless conversion of the same type
1 parent 79f3109 commit 6ed3bbb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/descriptor/pegin/legacy_pegin.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,7 @@ impl<Pk: MiniscriptKey> LegacyPegin<Pk> {
144144
let fed_ms = BtcMiniscript::from_ast(BtcTerminal::Multi(fed.clone()))
145145
.expect("Multi type check can't fail");
146146
let csv = BtcMiniscript::from_ast(BtcTerminal::Verify(Arc::new(
147-
BtcMiniscript::from_ast(BtcTerminal::Older(
148-
bitcoin_miniscript::RelLockTime::try_from(timelock).expect("TODO"),
149-
))
150-
.unwrap(),
147+
BtcMiniscript::from_ast(BtcTerminal::Older(timelock)).unwrap(),
151148
)))
152149
.unwrap();
153150
let emer_ms = BtcMiniscript::from_ast(BtcTerminal::Multi(emer.clone()))

0 commit comments

Comments
 (0)