From 7966eb3e1208c4740a3058c48a5d4b0c5033ca6a Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 17 Dec 2021 18:17:37 -0800 Subject: [PATCH] Ignore return_self_not_must_use clippy lint error: missing `#[must_use]` attribute on a method returning `Self` --> src/display.rs:5:5 | 5 | fn as_display(&self) -> Self; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::return-self-not-must-use` implied by `-D clippy::all` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 2fae25c..3b5d196 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -205,6 +205,7 @@ // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7421 clippy::doc_markdown, clippy::module_name_repetitions, + clippy::return_self_not_must_use, )] mod aserror;