Skip to content

Commit 265b8ec

Browse files
author
Michael Wright
committed
Reorder approx_consts constant to match rust docs
1 parent a8c2c7b commit 265b8ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_lints/src/approx_const.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ const KNOWN_CONSTS: [(f64, &str, usize); 18] = [
4848
(f64::FRAC_PI_4, "FRAC_PI_4", 5),
4949
(f64::FRAC_PI_6, "FRAC_PI_6", 5),
5050
(f64::FRAC_PI_8, "FRAC_PI_8", 5),
51-
(f64::LN_10, "LN_10", 5),
5251
(f64::LN_2, "LN_2", 5),
53-
(f64::LOG10_E, "LOG10_E", 5),
54-
(f64::LOG2_E, "LOG2_E", 5),
52+
(f64::LN_10, "LN_10", 5),
5553
(f64::LOG2_10, "LOG2_10", 5),
54+
(f64::LOG2_E, "LOG2_E", 5),
5655
(f64::LOG10_2, "LOG10_2", 5),
56+
(f64::LOG10_E, "LOG10_E", 5),
5757
(f64::PI, "PI", 3),
5858
(f64::SQRT_2, "SQRT_2", 5),
5959
];

0 commit comments

Comments
 (0)