Skip to content

Commit

Permalink
Ignore derive_partial_eq_without_eq clippy lint
Browse files Browse the repository at this point in the history
    error: you are deriving `PartialEq` and can implement `Eq`
     --> src/expr.rs:9:14
      |
    9 |     #[derive(PartialEq)]
      |              ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
      |
      = note: `-D clippy::derive-partial-eq-without-eq` implied by `-D clippy::all`
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq

    error: you are deriving `PartialEq` and can implement `Eq`
       --> src/lib.rs:130:23
        |
    130 | #[derive(Copy, Clone, PartialEq)]
        |                       ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
  • Loading branch information
dtolnay committed May 22, 2022
1 parent 60ba4fb commit 839d7a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
//! 4. Remove the computed number of spaces from the beginning of each line.
#![allow(
clippy::derive_partial_eq_without_eq,
clippy::module_name_repetitions,
clippy::needless_doctest_main,
clippy::needless_pass_by_value,
Expand Down

0 comments on commit 839d7a2

Please # to comment.