Skip to content

Commit

Permalink
Ignore wrong_self_convention clippy lint
Browse files Browse the repository at this point in the history
    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
  • Loading branch information
dtolnay committed Jan 15, 2022
1 parent 91333fa commit 21c2690
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 21c2690

Please sign in to comment.