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