Skip to content

Commit 3fdd0f5

Browse files
committed
Remove useless conversion call from error return
Clippy emits: warning: useless conversion to the same type: `psbt::Error` As suggested, remove the call to `into`.
1 parent d29d10a commit 3fdd0f5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/psbt/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,7 @@ fn sanity_check(psbt: &Psbt) -> Result<(), Error> {
378378
return Err(Error::WrongInputCount {
379379
in_tx: psbt.unsigned_tx.input.len(),
380380
in_map: psbt.inputs.len(),
381-
}
382-
.into());
381+
});
383382
}
384383

385384
// Check well-formedness of input data

0 commit comments

Comments
 (0)