From f8681698c0a9447166ae4fc2601cd5c4f4b5d6e7 Mon Sep 17 00:00:00 2001 From: Philippe-Cholet Date: Wed, 10 Jan 2024 14:45:29 +0100 Subject: [PATCH] fix clippy::derive_partial_eq_without_eq I merely did `cargo clippy --fix -- -D clippy::derive_partial_eq_without_eq` but the next link is useful to understand why it should be done https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq Co-Authored-By: Marcel Hellwig --- src/minmax.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/minmax.rs b/src/minmax.rs index f04e5adba..9f02a49f9 100644 --- a/src/minmax.rs +++ b/src/minmax.rs @@ -1,7 +1,7 @@ /// `MinMaxResult` is an enum returned by `minmax`. /// /// See [`.minmax()`](crate::Itertools::minmax) for more detail. -#[derive(Copy, Clone, PartialEq, Debug)] +#[derive(Copy, Clone, PartialEq, Eq, Debug)] pub enum MinMaxResult { /// Empty iterator NoElements,