From 6ea446fb4bef852dfbbc4cf869ebf9294c6c5071 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 24 Jan 2021 16:00:56 -0800 Subject: [PATCH] Suppress clippy unused_self pedantic lint This usage is fine. It's mirroring trait signatures in syn::visit::Visit. error: unused `self` argument --> serde_derive/src/bound.rs:241:24 | 241 | fn visit_macro(&mut self, _mac: &'ast syn::Macro) {} | ^^^^^^^^^ | note: the lint level is defined here --> serde_derive/src/lib.rs:18:22 | 18 | #![deny(clippy::all, clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[deny(clippy::unused_self)]` implied by `#[deny(clippy::pedantic)]` = help: consider refactoring to a associated function = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_self --- serde_derive/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/serde_derive/src/lib.rs b/serde_derive/src/lib.rs index 3b4f2881..05b1efc3 100644 --- a/serde_derive/src/lib.rs +++ b/serde_derive/src/lib.rs @@ -48,6 +48,7 @@ clippy::struct_excessive_bools, clippy::too_many_lines, clippy::unseparated_literal_suffix, + clippy::unused_self, clippy::use_self, clippy::wildcard_imports )]