diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2021-03-13 17:01:03 -0600 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2021-03-15 13:44:09 -0500 |
| commit | eb7f8d6089e2dba4006f0452ab25262735bbbf61 (patch) | |
| tree | 220d35be34d239f540f65a2a9a4ce0cc52af6770 /clippy_lints/src/ptr.rs | |
| parent | 0e042d2f7070f071cfc0c426181634d5d27cfa5c (diff) | |
Move some utils to ty_utils
Diffstat (limited to 'clippy_lints/src/ptr.rs')
| -rw-r--r-- | clippy_lints/src/ptr.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clippy_lints/src/ptr.rs b/clippy_lints/src/ptr.rs index 6ea2d8b06d8..c2649a135eb 100644 --- a/clippy_lints/src/ptr.rs +++ b/clippy_lints/src/ptr.rs @@ -1,10 +1,8 @@ //! Checks for usage of `&Vec[_]` and `&String`. use crate::utils::ptr::get_spans; -use crate::utils::{ - is_allowed, is_type_diagnostic_item, match_qpath, match_type, paths, snippet_opt, span_lint, span_lint_and_sugg, - span_lint_and_then, walk_ptrs_hir_ty, -}; +use crate::utils::{is_allowed, match_qpath, paths, snippet_opt, span_lint, span_lint_and_sugg, span_lint_and_then}; +use clippy_utils::ty::{is_type_diagnostic_item, match_type, walk_ptrs_hir_ty}; use if_chain::if_chain; use rustc_errors::Applicability; use rustc_hir::{ |
