Skip to content

Commit

Permalink
Fix clippy lint in test file
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrubeck committed Jul 29, 2024
1 parent 2ef58c4 commit 68cb858
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tests/evil.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 68cb858

Please sign in to comment.