diff options
| author | bors <bors@rust-lang.org> | 2021-03-16 00:08:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-03-16 00:08:01 +0000 |
| commit | d7a23112e3ba0fa99dc2d0a90241197580254af2 (patch) | |
| tree | b8c6f1eecab20a6008089265d0ffddc91f93cb1b /clippy_lints/src/ptr.rs | |
| parent | 0929a24d728186cca33fa4c97350a7add7f4493f (diff) | |
| parent | 6fc52a63d19c85e952fc81298e7dd2289a774ac6 (diff) | |
Auto merge of #6914 - camsteffen:source-utils, r=Manishearth
Move some utils to `clippy_utils::source` changelog: none Continues #6907
Diffstat (limited to 'clippy_lints/src/ptr.rs')
| -rw-r--r-- | clippy_lints/src/ptr.rs | 3 |
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; |
