Skip to content

Commit df22a99

Browse files
committed
Remove duplicate must_use
Clippy emits: warning: this function has an empty `#[must_use]` attribute, but returns a type already marked as `#[must_use]` This is because the return type of the function `legacy_encode_signing_data_to` is `EncodeSigningDataResult` which is already marked as `must_use`. There is no need to have `must_use` on the function also. I'm guessing this got through to master because we only just added clippy to CI.
1 parent fe7d58a commit df22a99

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/util/sighash.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,6 @@ impl<R: Deref<Target = Transaction>> SighashCache<R> {
647647

648648
/// Encodes the legacy signing data for any flag type into a given object implementing a
649649
/// [`std::io::Write`] trait. Internally calls [`Transaction::encode_signing_data_to`].
650-
#[must_use]
651650
pub fn legacy_encode_signing_data_to<Write: io::Write, U: Into<u32>>(
652651
&self,
653652
mut writer: Write,

0 commit comments

Comments
 (0)