@@ -5,7 +5,7 @@ LL | 1f32 == ONE;
5
5
| ^^^^^^^^^^^ help: consider comparing them within some error: `(1f32 - ONE).abs() < error`
6
6
|
7
7
= note: `-D clippy::float-cmp-const` implied by `-D warnings`
8
- note: `std:: f32::EPSILON` and `std:: f64::EPSILON` are available.
8
+ note: `f32::EPSILON` and `f64::EPSILON` are available.
9
9
--> $DIR/float_cmp_const.rs:20:5
10
10
|
11
11
LL | 1f32 == ONE;
@@ -17,7 +17,7 @@ error: strict comparison of `f32` or `f64` constant
17
17
LL | TWO == ONE;
18
18
| ^^^^^^^^^^ help: consider comparing them within some error: `(TWO - ONE).abs() < error`
19
19
|
20
- note: `std:: f32::EPSILON` and `std:: f64::EPSILON` are available.
20
+ note: `f32::EPSILON` and `f64::EPSILON` are available.
21
21
--> $DIR/float_cmp_const.rs:21:5
22
22
|
23
23
LL | TWO == ONE;
@@ -29,7 +29,7 @@ error: strict comparison of `f32` or `f64` constant
29
29
LL | TWO != ONE;
30
30
| ^^^^^^^^^^ help: consider comparing them within some error: `(TWO - ONE).abs() > error`
31
31
|
32
- note: `std:: f32::EPSILON` and `std:: f64::EPSILON` are available.
32
+ note: `f32::EPSILON` and `f64::EPSILON` are available.
33
33
--> $DIR/float_cmp_const.rs:22:5
34
34
|
35
35
LL | TWO != ONE;
@@ -41,7 +41,7 @@ error: strict comparison of `f32` or `f64` constant
41
41
LL | ONE + ONE == TWO;
42
42
| ^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(ONE + ONE - TWO).abs() < error`
43
43
|
44
- note: `std:: f32::EPSILON` and `std:: f64::EPSILON` are available.
44
+ note: `f32::EPSILON` and `f64::EPSILON` are available.
45
45
--> $DIR/float_cmp_const.rs:23:5
46
46
|
47
47
LL | ONE + ONE == TWO;
@@ -53,7 +53,7 @@ error: strict comparison of `f32` or `f64` constant
53
53
LL | x as f32 == ONE;
54
54
| ^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(x as f32 - ONE).abs() < error`
55
55
|
56
- note: `std:: f32::EPSILON` and `std:: f64::EPSILON` are available.
56
+ note: `f32::EPSILON` and `f64::EPSILON` are available.
57
57
--> $DIR/float_cmp_const.rs:25:5
58
58
|
59
59
LL | x as f32 == ONE;
@@ -65,7 +65,7 @@ error: strict comparison of `f32` or `f64` constant
65
65
LL | v == ONE;
66
66
| ^^^^^^^^ help: consider comparing them within some error: `(v - ONE).abs() < error`
67
67
|
68
- note: `std:: f32::EPSILON` and `std:: f64::EPSILON` are available.
68
+ note: `f32::EPSILON` and `f64::EPSILON` are available.
69
69
--> $DIR/float_cmp_const.rs:28:5
70
70
|
71
71
LL | v == ONE;
@@ -77,7 +77,7 @@ error: strict comparison of `f32` or `f64` constant
77
77
LL | v != ONE;
78
78
| ^^^^^^^^ help: consider comparing them within some error: `(v - ONE).abs() > error`
79
79
|
80
- note: `std:: f32::EPSILON` and `std:: f64::EPSILON` are available.
80
+ note: `f32::EPSILON` and `f64::EPSILON` are available.
81
81
--> $DIR/float_cmp_const.rs:29:5
82
82
|
83
83
LL | v != ONE;
0 commit comments