11error: approximate value of `f{32, 64}::consts::E` found
2- --> $DIR/approx_const.rs:4 :16
2+ --> $DIR/approx_const.rs:3 :16
33 |
44LL | let my_e = 2.7182;
55 | ^^^^^^
@@ -9,175 +9,175 @@ LL | let my_e = 2.7182;
99 = help: to override `-D warnings` add `#[allow(clippy::approx_constant)]`
1010
1111error: approximate value of `f{32, 64}::consts::E` found
12- --> $DIR/approx_const.rs:6 :20
12+ --> $DIR/approx_const.rs:5 :20
1313 |
1414LL | let almost_e = 2.718;
1515 | ^^^^^
1616 |
1717 = help: consider using the constant directly
1818
1919error: approximate value of `f{32, 64}::consts::FRAC_1_PI` found
20- --> $DIR/approx_const.rs:10 :24
20+ --> $DIR/approx_const.rs:9 :24
2121 |
2222LL | let my_1_frac_pi = 0.3183;
2323 | ^^^^^^
2424 |
2525 = help: consider using the constant directly
2626
2727error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found
28- --> $DIR/approx_const.rs:14 :28
28+ --> $DIR/approx_const.rs:13 :28
2929 |
3030LL | let my_frac_1_sqrt_2 = 0.70710678;
3131 | ^^^^^^^^^^
3232 |
3333 = help: consider using the constant directly
3434
3535error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found
36- --> $DIR/approx_const.rs:16 :32
36+ --> $DIR/approx_const.rs:15 :32
3737 |
3838LL | let almost_frac_1_sqrt_2 = 0.70711;
3939 | ^^^^^^^
4040 |
4141 = help: consider using the constant directly
4242
4343error: approximate value of `f{32, 64}::consts::FRAC_2_PI` found
44- --> $DIR/approx_const.rs:20 :24
44+ --> $DIR/approx_const.rs:19 :24
4545 |
4646LL | let my_frac_2_pi = 0.63661977;
4747 | ^^^^^^^^^^
4848 |
4949 = help: consider using the constant directly
5050
5151error: approximate value of `f{32, 64}::consts::FRAC_2_SQRT_PI` found
52- --> $DIR/approx_const.rs:24 :27
52+ --> $DIR/approx_const.rs:23 :27
5353 |
5454LL | let my_frac_2_sq_pi = 1.128379;
5555 | ^^^^^^^^
5656 |
5757 = help: consider using the constant directly
5858
5959error: approximate value of `f{32, 64}::consts::FRAC_PI_2` found
60- --> $DIR/approx_const.rs:28 :24
60+ --> $DIR/approx_const.rs:27 :24
6161 |
6262LL | let my_frac_pi_2 = 1.57079632679;
6363 | ^^^^^^^^^^^^^
6464 |
6565 = help: consider using the constant directly
6666
6767error: approximate value of `f{32, 64}::consts::FRAC_PI_3` found
68- --> $DIR/approx_const.rs:32 :24
68+ --> $DIR/approx_const.rs:31 :24
6969 |
7070LL | let my_frac_pi_3 = 1.04719755119;
7171 | ^^^^^^^^^^^^^
7272 |
7373 = help: consider using the constant directly
7474
7575error: approximate value of `f{32, 64}::consts::FRAC_PI_4` found
76- --> $DIR/approx_const.rs:36 :24
76+ --> $DIR/approx_const.rs:35 :24
7777 |
7878LL | let my_frac_pi_4 = 0.785398163397;
7979 | ^^^^^^^^^^^^^^
8080 |
8181 = help: consider using the constant directly
8282
8383error: approximate value of `f{32, 64}::consts::FRAC_PI_6` found
84- --> $DIR/approx_const.rs:40 :24
84+ --> $DIR/approx_const.rs:39 :24
8585 |
8686LL | let my_frac_pi_6 = 0.523598775598;
8787 | ^^^^^^^^^^^^^^
8888 |
8989 = help: consider using the constant directly
9090
9191error: approximate value of `f{32, 64}::consts::FRAC_PI_8` found
92- --> $DIR/approx_const.rs:44 :24
92+ --> $DIR/approx_const.rs:43 :24
9393 |
9494LL | let my_frac_pi_8 = 0.3926990816987;
9595 | ^^^^^^^^^^^^^^^
9696 |
9797 = help: consider using the constant directly
9898
9999error: approximate value of `f{32, 64}::consts::LN_10` found
100- --> $DIR/approx_const.rs:48 :20
100+ --> $DIR/approx_const.rs:47 :20
101101 |
102102LL | let my_ln_10 = 2.302585092994046;
103103 | ^^^^^^^^^^^^^^^^^
104104 |
105105 = help: consider using the constant directly
106106
107107error: approximate value of `f{32, 64}::consts::LN_2` found
108- --> $DIR/approx_const.rs:52 :19
108+ --> $DIR/approx_const.rs:51 :19
109109 |
110110LL | let my_ln_2 = 0.6931471805599453;
111111 | ^^^^^^^^^^^^^^^^^^
112112 |
113113 = help: consider using the constant directly
114114
115115error: approximate value of `f{32, 64}::consts::LOG10_E` found
116- --> $DIR/approx_const.rs:56 :22
116+ --> $DIR/approx_const.rs:55 :22
117117 |
118118LL | let my_log10_e = 0.4342944819032518;
119119 | ^^^^^^^^^^^^^^^^^^
120120 |
121121 = help: consider using the constant directly
122122
123123error: approximate value of `f{32, 64}::consts::LOG2_E` found
124- --> $DIR/approx_const.rs:60 :21
124+ --> $DIR/approx_const.rs:59 :21
125125 |
126126LL | let my_log2_e = 1.4426950408889634;
127127 | ^^^^^^^^^^^^^^^^^^
128128 |
129129 = help: consider using the constant directly
130130
131131error: approximate value of `f{32, 64}::consts::LOG2_10` found
132- --> $DIR/approx_const.rs:64 :19
132+ --> $DIR/approx_const.rs:63 :19
133133 |
134134LL | let log2_10 = 3.321928094887362;
135135 | ^^^^^^^^^^^^^^^^^
136136 |
137137 = help: consider using the constant directly
138138
139139error: approximate value of `f{32, 64}::consts::LOG10_2` found
140- --> $DIR/approx_const.rs:68 :19
140+ --> $DIR/approx_const.rs:67 :19
141141 |
142142LL | let log10_2 = 0.301029995663981;
143143 | ^^^^^^^^^^^^^^^^^
144144 |
145145 = help: consider using the constant directly
146146
147147error: approximate value of `f{32, 64}::consts::PI` found
148- --> $DIR/approx_const.rs:72 :17
148+ --> $DIR/approx_const.rs:71 :17
149149 |
150150LL | let my_pi = 3.1415;
151151 | ^^^^^^
152152 |
153153 = help: consider using the constant directly
154154
155155error: approximate value of `f{32, 64}::consts::PI` found
156- --> $DIR/approx_const.rs:74 :21
156+ --> $DIR/approx_const.rs:73 :21
157157 |
158158LL | let almost_pi = 3.14;
159159 | ^^^^
160160 |
161161 = help: consider using the constant directly
162162
163163error: approximate value of `f{32, 64}::consts::SQRT_2` found
164- --> $DIR/approx_const.rs:78 :18
164+ --> $DIR/approx_const.rs:77 :18
165165 |
166166LL | let my_sq2 = 1.4142;
167167 | ^^^^^^
168168 |
169169 = help: consider using the constant directly
170170
171171error: approximate value of `f{32, 64}::consts::TAU` found
172- --> $DIR/approx_const.rs:82 :18
172+ --> $DIR/approx_const.rs:81 :18
173173 |
174174LL | let my_tau = 6.2832;
175175 | ^^^^^^
176176 |
177177 = help: consider using the constant directly
178178
179179error: approximate value of `f{32, 64}::consts::TAU` found
180- --> $DIR/approx_const.rs:84 :22
180+ --> $DIR/approx_const.rs:83 :22
181181 |
182182LL | let almost_tau = 6.28;
183183 | ^^^^
0 commit comments