diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2021-03-14 18:17:44 -0500 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2021-03-15 15:34:15 -0500 |
| commit | 6fc52a63d19c85e952fc81298e7dd2289a774ac6 (patch) | |
| tree | a74a8fab7fbe5c6766791c3f186bbca4d0ed231b /clippy_lints/src/inconsistent_struct_constructor.rs | |
| parent | eb7f8d6089e2dba4006f0452ab25262735bbbf61 (diff) | |
| download | rust-6fc52a63d19c85e952fc81298e7dd2289a774ac6.tar.gz rust-6fc52a63d19c85e952fc81298e7dd2289a774ac6.zip | |
Move some utils to clippy_utils::source module
Diffstat (limited to 'clippy_lints/src/inconsistent_struct_constructor.rs')
| -rw-r--r-- | clippy_lints/src/inconsistent_struct_constructor.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clippy_lints/src/inconsistent_struct_constructor.rs b/clippy_lints/src/inconsistent_struct_constructor.rs index 49c17a12102..4762d5d40f3 100644 --- a/clippy_lints/src/inconsistent_struct_constructor.rs +++ b/clippy_lints/src/inconsistent_struct_constructor.rs @@ -1,3 +1,5 @@ +use clippy_utils::source::snippet; +use if_chain::if_chain; use rustc_data_structures::fx::FxHashMap; use rustc_errors::Applicability; use rustc_hir::{self as hir, ExprKind}; @@ -5,9 +7,7 @@ use rustc_lint::{LateContext, LateLintPass}; use rustc_session::{declare_lint_pass, declare_tool_lint}; use rustc_span::symbol::Symbol; -use if_chain::if_chain; - -use crate::utils::{snippet, span_lint_and_sugg}; +use crate::utils::span_lint_and_sugg; declare_clippy_lint! { /// **What it does:** Checks for struct constructors where all fields are shorthand and |
