New lint: [derive_partial_eq_without_eq]

This commit is contained in:
nsunderland1 2022-05-06 00:10:11 -07:00
parent 77effb7bb2
commit fe84ff3360
29 changed files with 359 additions and 38 deletions

View file

@ -2835,7 +2835,7 @@ const TRAIT_METHODS: [ShouldImplTraitCase; 30] = [
ShouldImplTraitCase::new("std::ops::Sub", "sub", 2, FN_HEADER, SelfKind::Value, OutType::Any, true),
];
#[derive(Clone, Copy, PartialEq, Debug)]
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
enum SelfKind {
Value,
Ref,

View file

@ -271,7 +271,7 @@ enum IterUsageKind {
NextTuple,
}
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
enum UnwrapKind {
Unwrap,
QuestionMark,