Suppress wrong_self_convention clippy false positive

https://github.com/rust-lang/rust-clippy/issues/6983

    warning: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
       --> macro/src/syntax/discriminant.rs:194:18
        |
    194 |     fn to_tokens(&self, tokens: &mut TokenStream) {
        |                  ^^^^^
        |
        = note: `#[warn(clippy::wrong_self_convention)]` on by default
        = help: consider choosing a less ambiguous name
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
This commit is contained in:
David Tolnay 2021-03-26 23:54:41 -04:00
parent 42b565b1d5
commit ff3205444f
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
4 changed files with 12 additions and 4 deletions

View File

@ -72,7 +72,9 @@
clippy::too_many_arguments,
clippy::too_many_lines,
clippy::toplevel_ref_arg,
clippy::upper_case_acronyms
clippy::upper_case_acronyms,
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/6983
clippy::wrong_self_convention
)]
mod cfg;

View File

@ -22,7 +22,9 @@
clippy::struct_excessive_bools,
clippy::too_many_arguments,
clippy::too_many_lines,
clippy::toplevel_ref_arg
clippy::toplevel_ref_arg,
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/6983
clippy::wrong_self_convention
)]
mod app;

View File

@ -31,7 +31,9 @@
clippy::struct_excessive_bools,
clippy::too_many_arguments,
clippy::too_many_lines,
clippy::toplevel_ref_arg
clippy::toplevel_ref_arg,
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/6983
clippy::wrong_self_convention
)]
mod error;

View File

@ -23,7 +23,9 @@
clippy::too_many_arguments,
clippy::too_many_lines,
clippy::toplevel_ref_arg,
clippy::useless_let_if_seq
clippy::useless_let_if_seq,
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/6983
clippy::wrong_self_convention
)]
extern crate proc_macro;