Skip to content

Commit 6ea446f

Browse files
committed
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
1 parent 85c6904 commit 6ea446f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎serde_derive/src/lib.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
clippy::struct_excessive_bools,
4949
clippy::too_many_lines,
5050
clippy::unseparated_literal_suffix,
51+
clippy::unused_self,
5152
clippy::use_self,
5253
clippy::wildcard_imports
5354
)]

0 commit comments

Comments
 (0)