From 199516b599fa11cfabf64b3e641db9fc162e2496 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 10 Dec 2024 11:00:16 +1100 Subject: [PATCH] io: Add lint return_self_must_use Add the lint. No additional clippy warnings are introduced. --- io/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/io/src/lib.rs b/io/src/lib.rs index b867be191..9770f6ce8 100644 --- a/io/src/lib.rs +++ b/io/src/lib.rs @@ -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.