Skip to content

Commit cd68622

Browse files
committed
Tidy imports
1 parent 9f402b3 commit cd68622

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clippy_lints/src/trailing_zero_sized_array_without_repr_c.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
use clippy_utils::consts::{constant, miri_to_const, ConstEvalLateContext, Constant};
21
use clippy_utils::diagnostics::span_lint_and_help;
32
use rustc_ast::Attribute;
4-
use rustc_hir::{Item, ItemKind, VariantData};
3+
use rustc_hir::VariantData;
4+
use rustc_hir::{Item, ItemKind};
55
use rustc_lint::{LateContext, LateLintPass};
66
use rustc_middle::dep_graph::DepContext;
77
use rustc_middle::ty::Const;
@@ -65,8 +65,8 @@ impl<'tcx> LateLintPass<'tcx> for TrailingZeroSizedArrayWithoutReprC {
6565
}
6666

6767
fn is_struct_with_trailing_zero_sized_array(cx: &LateContext<'tcx>, item: &'tcx Item<'tcx>) -> bool {
68-
// TODO: when finalized, replace with an `if_chain`. I have it like this because my rust-analyzer doesn't work when it's an `if_chain`
69-
// First check if last field is an array
68+
// TODO: when finalized, replace with an `if_chain`. I have it like this because my rust-analyzer
69+
// doesn't work when it's an `if_chain` First check if last field is an array
7070
if let ItemKind::Struct(data, _) = &item.kind {
7171
let field_defs = data.fields();
7272
if let Some(last_field) = field_defs.last() {

0 commit comments

Comments
 (0)