Skip to content

Commit 0420f23

Browse files
committed
Enable derive_partial_eq_without_eq
1 parent ed6093e commit 0420f23

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

clippy_config/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ impl Serialize for SourceItemOrderingModuleItemGroupings {
508508
}
509509

510510
/// Represents all kinds of trait associated items.
511-
#[derive(Clone, Debug, Deserialize, PartialEq, PartialOrd, Serialize)]
511+
#[derive(Clone, Debug, Deserialize, PartialEq, Eq, PartialOrd, Serialize)]
512512
#[serde(rename_all = "snake_case")]
513513
pub enum SourceItemOrderingTraitAssocItemKind {
514514
Const,

clippy_dev/src/new_lint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::fs::{self, OpenOptions};
66
use std::io::{self, Write as _};
77
use std::path::{Path, PathBuf};
88

9-
#[derive(Clone, Copy, PartialEq, ValueEnum)]
9+
#[derive(Clone, Copy, PartialEq, Eq, ValueEnum)]
1010
pub enum Pass {
1111
Early,
1212
Late,

clippy_utils/src/paths.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use std::sync::OnceLock;
2020

2121
/// Specifies whether to resolve a path in the [`TypeNS`], [`ValueNS`], [`MacroNS`] or in an
2222
/// arbitrary namespace
23-
#[derive(Clone, Copy, PartialEq, Debug)]
23+
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
2424
pub enum PathNS {
2525
Type,
2626
Value,

tests/dogfood.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ fn run_clippy_for_package(project: &str) -> bool {
9292
"-D",
9393
"clippy::dbg_macro",
9494
"-D",
95+
"clippy::derive_partial_eq_without_eq",
96+
"-D",
9597
"clippy::iter_on_single_items",
9698
"-D",
9799
"clippy::needless_pass_by_ref_mut",

0 commit comments

Comments
 (0)