Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 518568a

Browse files
committed
Don't import primitive type modules
1 parent 51bb1d2 commit 518568a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

clippy_lints/src/float_literal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use rustc_hir as hir;
66
use rustc_lint::{LateContext, LateLintPass};
77
use rustc_middle::ty;
88
use rustc_session::{declare_lint_pass, declare_tool_lint};
9-
use std::{f32, f64, fmt};
9+
use std::fmt;
1010

1111
declare_clippy_lint! {
1212
/// **What it does:** Checks for float literals with a precision greater

clippy_lints/src/types.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1973,8 +1973,6 @@ impl Ord for FullInt {
19731973
}
19741974

19751975
fn numeric_cast_precast_bounds<'a>(cx: &LateContext<'_, '_>, expr: &'a Expr<'_>) -> Option<(FullInt, FullInt)> {
1976-
use std::{i128, i16, i32, i64, i8, isize, u128, u16, u32, u64, u8, usize};
1977-
19781976
if let ExprKind::Cast(ref cast_exp, _) = expr.kind {
19791977
let pre_cast_ty = cx.tables.expr_ty(cast_exp);
19801978
let cast_ty = cx.tables.expr_ty(expr);

0 commit comments

Comments
 (0)