]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/approx_const.rs
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / approx_const.rs
index 2da762725b158e5e78d7ff8a1fb60153829c727e..8c295d1438a79970e4b68ef16352a03f0639c471 100644 (file)
@@ -1,8 +1,5 @@
-#![feature(plugin)]
-#![plugin(clippy)]
-
-#[deny(approx_constant)]
-#[allow(unused, shadow_unrelated, similar_names)]
+#[warn(clippy::approx_constant)]
+#[allow(unused, clippy::shadow_unrelated, clippy::similar_names, clippy::unreadable_literal)]
 fn main() {
     let my_e = 2.7182;
     let almost_e = 2.718;
@@ -42,7 +39,7 @@ fn main() {
     let my_ln_2 = 0.6931471805599453;
     let no_ln_2 = 0.693;
 
-    let my_log10_e = 0.43429448190325182;
+    let my_log10_e = 0.4342944819032518;
     let no_log10_e = 0.434;
 
     let my_log2_e = 1.4426950408889634;