File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ pub trait FuzzyEq {
24
24
25
25
impl float: FuzzyEq {
26
26
pure fn fuzzy_eq ( & self , other : & float ) -> bool {
27
- self . fuzzy_eq_eps ( other, fuzzy_epsilon)
27
+ self . fuzzy_eq_eps ( other, & fuzzy_epsilon)
28
28
}
29
29
30
30
pure fn fuzzy_eq_eps ( & self , other : & float , epsilon : & float ) -> bool {
@@ -34,7 +34,7 @@ impl float: FuzzyEq {
34
34
35
35
impl f32 : FuzzyEq {
36
36
pure fn fuzzy_eq ( & self , other : & f32 ) -> bool {
37
- self . fuzzy_eq_eps ( other, fuzzy_epsilon as f32 )
37
+ self . fuzzy_eq_eps ( other, & ( fuzzy_epsilon as f32 ) )
38
38
}
39
39
40
40
pure fn fuzzy_eq_eps ( & self , other : & f32 , epsilon : & f32 ) -> bool {
@@ -44,7 +44,7 @@ impl f32: FuzzyEq {
44
44
45
45
impl f64 : FuzzyEq {
46
46
pure fn fuzzy_eq ( & self , other : & f64 ) -> bool {
47
- self . fuzzy_eq_eps ( other, fuzzy_epsilon as f64 )
47
+ self . fuzzy_eq_eps ( other, & ( fuzzy_epsilon as f64 ) )
48
48
}
49
49
50
50
pure fn fuzzy_eq_eps ( & self , other : & f64 , epsilon : & f64 ) -> bool {
You can’t perform that action at this time.
0 commit comments