diff --git a/detectors/Cargo.toml b/detectors/Cargo.toml index e173bd56..3b4c5494 100644 --- a/detectors/Cargo.toml +++ b/detectors/Cargo.toml @@ -8,4 +8,5 @@ dylint_linting = "2.1.5" dylint_testing = "2.1.5" if_chain = "1.0.2" +scout-audit-clippy-utils = { version = "=0.2.1", path = "../scout-audit-clippy-utils" } scout-audit-internal = { path = "../scout-audit-internal", features = ["detector", "lint_helper"] } diff --git a/detectors/avoid-panic-error/Cargo.toml b/detectors/avoid-panic-error/Cargo.toml index 953dcd46..c41c10be 100644 --- a/detectors/avoid-panic-error/Cargo.toml +++ b/detectors/avoid-panic-error/Cargo.toml @@ -7,10 +7,10 @@ edition = "2021" crate-type = ["cdylib"] [dependencies] -clippy_utils = { workspace = true } dylint_linting = { workspace = true } if_chain = { workspace = true } +scout-audit-clippy-utils = { workspace = true } scout-audit-internal = { workspace = true } [dev-dependencies] diff --git a/detectors/avoid-panic-error/src/lib.rs b/detectors/avoid-panic-error/src/lib.rs index a6350bcf..b87812f8 100644 --- a/detectors/avoid-panic-error/src/lib.rs +++ b/detectors/avoid-panic-error/src/lib.rs @@ -4,7 +4,6 @@ extern crate rustc_ast; extern crate rustc_span; -use clippy_utils::sym; use if_chain::if_chain; use rustc_ast::{ ptr::P, @@ -14,6 +13,7 @@ use rustc_ast::{ }; use rustc_lint::{EarlyContext, EarlyLintPass}; use rustc_span::{sym, Span}; +use scout_audit_clippy_utils::sym; use scout_audit_internal::Detector; dylint_linting::impl_pre_expansion_lint! {