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 {
2424
2525impl float: FuzzyEq {
2626 pure fn fuzzy_eq ( & self , other : & float ) -> bool {
27- self . fuzzy_eq_eps ( other, fuzzy_epsilon)
27+ self . fuzzy_eq_eps ( other, & fuzzy_epsilon)
2828 }
2929
3030 pure fn fuzzy_eq_eps ( & self , other : & float , epsilon : & float ) -> bool {
@@ -34,7 +34,7 @@ impl float: FuzzyEq {
3434
3535impl f32 : FuzzyEq {
3636 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 ) )
3838 }
3939
4040 pure fn fuzzy_eq_eps ( & self , other : & f32 , epsilon : & f32 ) -> bool {
@@ -44,7 +44,7 @@ impl f32: FuzzyEq {
4444
4545impl f64 : FuzzyEq {
4646 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 ) )
4848 }
4949
5050 pure fn fuzzy_eq_eps ( & self , other : & f64 , epsilon : & f64 ) -> bool {
You can’t perform that action at this time.
0 commit comments