diff options
| author | Michael Schubart <michael@schubart.net> | 2023-02-28 21:47:07 +0000 |
|---|---|---|
| committer | Michael Schubart <michael@schubart.net> | 2023-02-28 21:47:07 +0000 |
| commit | 5770d40d8ea3ba8d5a41db5e5914b45f32d80a9f (patch) | |
| tree | 86af044c49625fac50c2c4ee53fe778471e8a031 | |
| parent | 08708198fbb8eb4bd8df76bded9fcdb32adb8163 (diff) | |
| download | rust-5770d40d8ea3ba8d5a41db5e5914b45f32d80a9f.tar.gz rust-5770d40d8ea3ba8d5a41db5e5914b45f32d80a9f.zip | |
More compact `use` statements
| -rw-r--r-- | clippy_lints/src/collection_is_never_read.rs | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/clippy_lints/src/collection_is_never_read.rs b/clippy_lints/src/collection_is_never_read.rs index f20c09a4448..c0c231bb2c7 100644 --- a/clippy_lints/src/collection_is_never_read.rs +++ b/clippy_lints/src/collection_is_never_read.rs @@ -1,20 +1,11 @@ use clippy_utils::diagnostics::span_lint; -use clippy_utils::get_enclosing_block; -use clippy_utils::get_parent_node; -use clippy_utils::path_to_local_id; use clippy_utils::ty::is_type_diagnostic_item; use clippy_utils::visitors::for_each_expr_with_closures; +use clippy_utils::{get_enclosing_block, get_parent_node, path_to_local_id}; use core::ops::ControlFlow; -use rustc_hir::Block; -use rustc_hir::ExprKind; -use rustc_hir::HirId; -use rustc_hir::Local; -use rustc_hir::Node; -use rustc_hir::PatKind; -use rustc_lint::LateContext; -use rustc_lint::LateLintPass; -use rustc_session::declare_lint_pass; -use rustc_session::declare_tool_lint; +use rustc_hir::{Block, ExprKind, HirId, Local, Node, PatKind}; +use rustc_lint::{LateContext, LateLintPass}; +use rustc_session::{declare_lint_pass, declare_tool_lint}; use rustc_span::symbol::sym; use rustc_span::Symbol; |
