Skip to content

Commit 4ada783

Browse files
committed
fix clippy::derive_partial_eq_without_eq
1 parent d306e94 commit 4ada783

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/minmax.rs

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

src/with_position.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn with_position<I>(iter: I) -> WithPosition<I>
3434
/// Indicates the position of this element in the iterator results.
3535
///
3636
/// See [`.with_position()`](crate::Itertools::with_position) for more information.
37-
#[derive(Copy, Clone, Debug, PartialEq)]
37+
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
3838
pub enum Position<T> {
3939
/// This is the first element.
4040
First(T),

tests/test_core.rs

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

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

0 commit comments

Comments
 (0)