Ignore wrong_self_convention clippy lint

error: methods called `from_*` usually take no `self`
     --> impl/src/prop.rs:5:30
      |
    5 |     pub(crate) fn from_field(&self) -> Option<&Field> {
      |                              ^^^^^
      |
      = note: `-D clippy::wrong-self-convention` implied by `-D clippy::all`
      = 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

    error: methods called `from_*` usually take no `self`
      --> impl/src/prop.rs:51:30
       |
    51 |     pub(crate) fn from_field(&self) -> Option<&Field> {
       |                              ^^^^^
       |
       = 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 2022-01-14 19:27:37 -08:00
parent 91333fa18a
commit 21c26903e2
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@
clippy::option_if_let_else,
clippy::range_plus_one,
clippy::single_match_else,
clippy::too_many_lines
clippy::too_many_lines,
clippy::wrong_self_convention
)]
extern crate proc_macro;