Implementation + move one lint

This commit is contained in:
Oliver Schneider
2018-03-27 17:13:55 +02:00
parent 9b10c4be8c
commit ef9fdbb8a9
3 changed files with 84 additions and 9 deletions

View File

@@ -26,9 +26,9 @@ use utils::span_lint;
/// ```rust
/// let x = 3.14;
/// ```
declare_lint! {
declare_clippy_lint! {
pub APPROX_CONSTANT,
Warn,
correctness,
"the approximate of a known float constant (in `std::fXX::consts`)"
}