@@ -5,7 +5,7 @@ LL | 1f32 == ONE;
55 | ^^^^^^^^^^^ help: consider comparing them within some error: `(1f32 - ONE).abs() < error`
66 |
77 = 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.
99 --> $DIR/float_cmp_const.rs:20:5
1010 |
1111LL | 1f32 == ONE;
@@ -17,7 +17,7 @@ error: strict comparison of `f32` or `f64` constant
1717LL | TWO == ONE;
1818 | ^^^^^^^^^^ help: consider comparing them within some error: `(TWO - ONE).abs() < error`
1919 |
20- note: `std:: f32::EPSILON` and `std:: f64::EPSILON` are available.
20+ note: `f32::EPSILON` and `f64::EPSILON` are available.
2121 --> $DIR/float_cmp_const.rs:21:5
2222 |
2323LL | TWO == ONE;
@@ -29,7 +29,7 @@ error: strict comparison of `f32` or `f64` constant
2929LL | TWO != ONE;
3030 | ^^^^^^^^^^ help: consider comparing them within some error: `(TWO - ONE).abs() > error`
3131 |
32- note: `std:: f32::EPSILON` and `std:: f64::EPSILON` are available.
32+ note: `f32::EPSILON` and `f64::EPSILON` are available.
3333 --> $DIR/float_cmp_const.rs:22:5
3434 |
3535LL | TWO != ONE;
@@ -41,7 +41,7 @@ error: strict comparison of `f32` or `f64` constant
4141LL | ONE + ONE == TWO;
4242 | ^^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(ONE + ONE - TWO).abs() < error`
4343 |
44- note: `std:: f32::EPSILON` and `std:: f64::EPSILON` are available.
44+ note: `f32::EPSILON` and `f64::EPSILON` are available.
4545 --> $DIR/float_cmp_const.rs:23:5
4646 |
4747LL | ONE + ONE == TWO;
@@ -53,7 +53,7 @@ error: strict comparison of `f32` or `f64` constant
5353LL | x as f32 == ONE;
5454 | ^^^^^^^^^^^^^^^ help: consider comparing them within some error: `(x as f32 - ONE).abs() < error`
5555 |
56- note: `std:: f32::EPSILON` and `std:: f64::EPSILON` are available.
56+ note: `f32::EPSILON` and `f64::EPSILON` are available.
5757 --> $DIR/float_cmp_const.rs:25:5
5858 |
5959LL | x as f32 == ONE;
@@ -65,7 +65,7 @@ error: strict comparison of `f32` or `f64` constant
6565LL | v == ONE;
6666 | ^^^^^^^^ help: consider comparing them within some error: `(v - ONE).abs() < error`
6767 |
68- note: `std:: f32::EPSILON` and `std:: f64::EPSILON` are available.
68+ note: `f32::EPSILON` and `f64::EPSILON` are available.
6969 --> $DIR/float_cmp_const.rs:28:5
7070 |
7171LL | v == ONE;
@@ -77,7 +77,7 @@ error: strict comparison of `f32` or `f64` constant
7777LL | v != ONE;
7878 | ^^^^^^^^ help: consider comparing them within some error: `(v - ONE).abs() > error`
7979 |
80- note: `std:: f32::EPSILON` and `std:: f64::EPSILON` are available.
80+ note: `f32::EPSILON` and `f64::EPSILON` are available.
8181 --> $DIR/float_cmp_const.rs:29:5
8282 |
8383LL | v != ONE;
0 commit comments