Skip to content

Commit d484340

Browse files
committed
fix clippy::derive_partial_eq_without_eq
1 parent 4dffdd9 commit d484340

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/minmax.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// `MinMaxResult` is an enum returned by `minmax`.
22
///
33
/// See [`.minmax()`](crate::Itertools::minmax) for more detail.
4-
#[derive(Copy, Clone, PartialEq, Debug)]
4+
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
55
pub enum MinMaxResult<T> {
66
/// Empty iterator
77
NoElements,

tests/test_core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ fn count_clones() {
228228
// Check that RepeatN only clones N - 1 times.
229229

230230
use core::cell::Cell;
231-
#[derive(PartialEq, Debug)]
231+
#[derive(PartialEq, Eq, Debug)]
232232
struct Foo {
233233
n: Cell<usize>,
234234
}

0 commit comments

Comments
 (0)