From 68cb858f04d46b98ed345d2e0220f828333f412b Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Mon, 29 Jul 2024 07:51:44 -0700 Subject: [PATCH] Fix clippy lint in test file --- tests/evil.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tests/evil.rs b/tests/evil.rs index e847600..b3b7cf9 100644 --- a/tests/evil.rs +++ b/tests/evil.rs @@ -4,7 +4,7 @@ use ordered_float::NotNan; use std::num::FpCategory; use std::ops::{Add, Div, Mul, Neg, Rem, Sub}; -#[derive(PartialOrd, PartialEq)] +#[derive(Copy, Clone, PartialOrd, PartialEq)] struct EvilFloat(f32); impl Zero for EvilFloat { @@ -87,14 +87,6 @@ impl Neg for EvilFloat { } } -impl Copy for EvilFloat {} - -impl Clone for EvilFloat { - fn clone(&self) -> Self { - todo!() - } -} - impl FloatCore for EvilFloat { fn is_nan(self) -> bool { false