mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-12-17 19:56:59 +00:00
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:
parent
42b565b1d5
commit
ff3205444f
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user