Suppress false positive wrong_self_convention clippy lint

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
      --> src/to_tokens.rs:80:18
       |
    80 |     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 22:59:00 -04:00
parent 65ed8a89e2
commit bb1254c4be
+3 -1
View File
@@ -86,7 +86,9 @@
clippy::doc_markdown,
clippy::missing_errors_doc,
clippy::missing_panics_doc,
clippy::module_name_repetitions
clippy::module_name_repetitions,
// false positive https://github.com/rust-lang/rust-clippy/issues/6983
clippy::wrong_self_convention,
)]
#[cfg(all(