Format code

This commit is contained in:
Mateusz Mikuła
2018-05-22 10:21:42 +02:00
committed by Mateusz Mikuła
parent e4b954ea92
commit 3c6503eb4b
11 changed files with 134 additions and 129 deletions

View File

@@ -1,5 +1,5 @@
use rustc::lint::*;
use rustc::hir::*;
use rustc::lint::*;
use std::f64::consts as f64;
use syntax::ast::{FloatTy, Lit, LitKind};
use syntax::symbol;
@@ -90,8 +90,7 @@ fn check_known_consts(cx: &LateContext, e: &Expr, s: &symbol::Symbol, module: &s
&format!(
"approximate value of `{}::consts::{}` found. \
Consider using it directly",
module,
&name
module, &name
),
);
return;