about summary refs log tree commit diff
path: root/clippy_lints/src/casts/cast_ptr_alignment.rs
diff options
context:
space:
mode:
authorCameron Steffen <cam.steffen94@gmail.com>2021-03-16 11:06:34 -0500
committerCameron Steffen <cam.steffen94@gmail.com>2021-03-17 09:13:52 -0500
commit0743e841f07b7c41f65187fbf71f90bb5dc71982 (patch)
tree3867dad9fc14b36e76bf11a3312947603a7df066 /clippy_lints/src/casts/cast_ptr_alignment.rs
parent8af28840d2b493897a54eb9a21e155c09e38f10f (diff)
downloadrust-0743e841f07b7c41f65187fbf71f90bb5dc71982.tar.gz
rust-0743e841f07b7c41f65187fbf71f90bb5dc71982.zip
Don't re-export clippy_utils::*
Diffstat (limited to 'clippy_lints/src/casts/cast_ptr_alignment.rs')
-rw-r--r--clippy_lints/src/casts/cast_ptr_alignment.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/clippy_lints/src/casts/cast_ptr_alignment.rs b/clippy_lints/src/casts/cast_ptr_alignment.rs
index 6a45ec61c54..5208156ffd2 100644
--- a/clippy_lints/src/casts/cast_ptr_alignment.rs
+++ b/clippy_lints/src/casts/cast_ptr_alignment.rs
@@ -1,14 +1,12 @@
 use clippy_utils::diagnostics::span_lint;
+use clippy_utils::is_hir_ty_cfg_dependant;
+use if_chain::if_chain;
 use rustc_hir::{Expr, ExprKind, GenericArg};
 use rustc_lint::LateContext;
 use rustc_middle::ty::{self, Ty};
 use rustc_span::symbol::sym;
 use rustc_target::abi::LayoutOf;
 
-use if_chain::if_chain;
-
-use crate::utils::is_hir_ty_cfg_dependant;
-
 use super::CAST_PTR_ALIGNMENT;
 
 pub(super) fn check(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {