Skip to content

Commit 68cb858

Browse files
committed
Fix clippy lint in test file
1 parent 2ef58c4 commit 68cb858

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

tests/evil.rs

+1-9
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use ordered_float::NotNan;
44
use std::num::FpCategory;
55
use std::ops::{Add, Div, Mul, Neg, Rem, Sub};
66

7-
#[derive(PartialOrd, PartialEq)]
7+
#[derive(Copy, Clone, PartialOrd, PartialEq)]
88
struct EvilFloat(f32);
99

1010
impl Zero for EvilFloat {
@@ -87,14 +87,6 @@ impl Neg for EvilFloat {
8787
}
8888
}
8989

90-
impl Copy for EvilFloat {}
91-
92-
impl Clone for EvilFloat {
93-
fn clone(&self) -> Self {
94-
todo!()
95-
}
96-
}
97-
9890
impl FloatCore for EvilFloat {
9991
fn is_nan(self) -> bool {
10092
false

0 commit comments

Comments
 (0)