about summary refs log tree commit diff
path: root/clippy_lints/src/ptr.rs
diff options
context:
space:
mode:
authorCameron Steffen <cam.steffen94@gmail.com>2021-03-14 18:17:44 -0500
committerCameron Steffen <cam.steffen94@gmail.com>2021-03-15 15:34:15 -0500
commit6fc52a63d19c85e952fc81298e7dd2289a774ac6 (patch)
treea74a8fab7fbe5c6766791c3f186bbca4d0ed231b /clippy_lints/src/ptr.rs
parenteb7f8d6089e2dba4006f0452ab25262735bbbf61 (diff)
Move some utils to clippy_utils::source module
Diffstat (limited to 'clippy_lints/src/ptr.rs')
-rw-r--r--clippy_lints/src/ptr.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/clippy_lints/src/ptr.rs b/clippy_lints/src/ptr.rs
index c2649a135eb..bfe8bf33f51 100644
--- a/clippy_lints/src/ptr.rs
+++ b/clippy_lints/src/ptr.rs
@@ -1,7 +1,8 @@
 //! Checks for usage of  `&Vec[_]` and `&String`.
 
 use crate::utils::ptr::get_spans;
-use crate::utils::{is_allowed, match_qpath, paths, snippet_opt, span_lint, span_lint_and_sugg, span_lint_and_then};
+use crate::utils::{is_allowed, match_qpath, paths, span_lint, span_lint_and_sugg, span_lint_and_then};
+use clippy_utils::source::snippet_opt;
 use clippy_utils::ty::{is_type_diagnostic_item, match_type, walk_ptrs_hir_ty};
 use if_chain::if_chain;
 use rustc_errors::Applicability;