Skip to content

Commit

Permalink
Don't import primitive type modules
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Apr 7, 2020
1 parent 51bb1d2 commit 518568a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/float_literal.rs
Expand Up @@ -6,7 +6,7 @@ use rustc_hir as hir;
use rustc_lint::{LateContext, LateLintPass};
use rustc_middle::ty;
use rustc_session::{declare_lint_pass, declare_tool_lint};
use std::{f32, f64, fmt};
use std::fmt;

declare_clippy_lint! {
/// **What it does:** Checks for float literals with a precision greater
Expand Down
2 changes: 0 additions & 2 deletions clippy_lints/src/types.rs
Expand Up @@ -1973,8 +1973,6 @@ impl Ord for FullInt {
}

fn numeric_cast_precast_bounds<'a>(cx: &LateContext<'_, '_>, expr: &'a Expr<'_>) -> Option<(FullInt, FullInt)> {
use std::{i128, i16, i32, i64, i8, isize, u128, u16, u32, u64, u8, usize};

if let ExprKind::Cast(ref cast_exp, _) = expr.kind {
let pre_cast_ty = cx.tables.expr_ty(cast_exp);
let cast_ty = cx.tables.expr_ty(expr);
Expand Down

0 comments on commit 518568a

Please sign in to comment.