From 731a958d4ddeeca00315fd1666f84005b10719e0 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 25 May 2022 12:52:15 -0400 Subject: [PATCH] don't implement PartialEq for FunctionEntry --- src/function_entry.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/function_entry.rs b/src/function_entry.rs index 0ca568b..7e7f0b8 100644 --- a/src/function_entry.rs +++ b/src/function_entry.rs @@ -32,7 +32,7 @@ impl const Default for Riemann { } /// `FunctionEntry` is a function that can calculate values, integrals, derivatives, etc etc -#[derive(PartialEq, Clone)] +#[derive(Clone)] pub struct FunctionEntry { /// The `BackingFunction` instance that is used to generate `f(x)`, `f'(x)`, and `f''(x)` function: BackingFunction, @@ -63,7 +63,6 @@ pub struct FunctionEntry { pub settings_opened: bool, } -#[allow(clippy::derive_hash_xor_eq)] impl Hash for FunctionEntry { fn hash(&self, state: &mut H) { self.raw_func_str.hash(state);