Navigation Menu

Skip to content

Commit

Permalink
Reorder approx_consts constant to match rust docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wright committed Sep 3, 2021
1 parent a8c2c7b commit 265b8ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clippy_lints/src/approx_const.rs
Expand Up @@ -48,12 +48,12 @@ const KNOWN_CONSTS: [(f64, &str, usize); 18] = [
(f64::FRAC_PI_4, "FRAC_PI_4", 5),
(f64::FRAC_PI_6, "FRAC_PI_6", 5),
(f64::FRAC_PI_8, "FRAC_PI_8", 5),
(f64::LN_10, "LN_10", 5),
(f64::LN_2, "LN_2", 5),
(f64::LOG10_E, "LOG10_E", 5),
(f64::LOG2_E, "LOG2_E", 5),
(f64::LN_10, "LN_10", 5),
(f64::LOG2_10, "LOG2_10", 5),
(f64::LOG2_E, "LOG2_E", 5),
(f64::LOG10_2, "LOG10_2", 5),
(f64::LOG10_E, "LOG10_E", 5),
(f64::PI, "PI", 3),
(f64::SQRT_2, "SQRT_2", 5),
];
Expand Down

0 comments on commit 265b8ec

Please sign in to comment.