Merge rust-bitcoin/rust-bitcoin#3713: io: Add lint `return_self_not_must_use`

199516b599 io: Add lint return_self_must_use (Tobin C. Harding)

Pull request description:

  Enable lint `clippy::return_self_not_must_use`. Does not generate any new warnings.

  Also run the linter with `clippy::must_use_candidate` enabled. Also does not generate any new warnings.

  Done as part of #3185

ACKs for top commit:
  apoelstra:
    ACK 199516b599fa11cfabf64b3e641db9fc162e2496; successfully ran local tests; nice! will one-ACK merge

Tree-SHA512: a44772f58d60d02fc14c364cfd8bc098ab0be45a80463f5337957b04170116d680d15cea5ce96b7c55d8bc08e04e546f4dd3ee29a2acf2e1fadd4e78321e689c
This commit is contained in:
merge-script 2024-12-11 13:42:11 +00:00
commit f1b993a00d
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@
// Coding conventions.
#![warn(missing_docs)]
#![doc(test(attr(warn(unused))))]
// Pedantic lints that we enforce.
#![warn(clippy::return_self_not_must_use)]
// Exclude lints we don't think are valuable.
#![allow(clippy::needless_question_mark)] // https://github.com/rust-bitcoin/rust-bitcoin/pull/2134
#![allow(clippy::manual_range_contains)] // More readable than clippy's format.