Skip to content

Commit 989ba34

Browse files
committed
Remove useless conversion
Clippy emits: warning: useless conversion to the same type: `setup::miniscript::bitcoin::absolute::LockTime` As suggested, remove useless conversion.
1 parent 474f0b8 commit 989ba34

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

bitcoind-tests/tests/test_cpp.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ pub fn test_from_cpp_ms(cl: &Client, testdata: &TestData) {
105105
let mut psbt = Psbt {
106106
unsigned_tx: Transaction {
107107
version: transaction::Version::TWO,
108-
lock_time: absolute::LockTime::from_time(1_603_866_330)
109-
.expect("valid timestamp")
110-
.into(), // 10/28/2020 @ 6:25am (UTC)
108+
lock_time: absolute::LockTime::from_time(1_603_866_330).expect("valid timestamp"), // 10/28/2020 @ 6:25am (UTC)
111109
input: vec![],
112110
output: vec![],
113111
},

bitcoind-tests/tests/test_desc.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ pub fn test_desc_satisfy(
104104
let mut psbt = Psbt {
105105
unsigned_tx: Transaction {
106106
version: transaction::Version::TWO,
107-
lock_time: absolute::LockTime::from_time(1_603_866_330)
108-
.expect("valid timestamp")
109-
.into(), // 10/28/2020 @ 6:25am (UTC)
107+
lock_time: absolute::LockTime::from_time(1_603_866_330).expect("valid timestamp"), // 10/28/2020 @ 6:25am (UTC)
110108
input: vec![],
111109
output: vec![],
112110
},

0 commit comments

Comments
 (0)