diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2021-03-16 11:06:34 -0500 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2021-03-17 09:13:52 -0500 |
| commit | 0743e841f07b7c41f65187fbf71f90bb5dc71982 (patch) | |
| tree | 3867dad9fc14b36e76bf11a3312947603a7df066 /clippy_lints/src/casts/cast_ptr_alignment.rs | |
| parent | 8af28840d2b493897a54eb9a21e155c09e38f10f (diff) | |
| download | rust-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.rs | 6 |
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<'_>) { |
