mirror of
https://github.com/openharmony/third_party_rust_quote.git
synced 2026-07-19 13:53:59 -04:00
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:
+3
-1
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user