Skip to content

Commit

Permalink
Fix broken detector
Browse files Browse the repository at this point in the history
  • Loading branch information
jgcrosta committed Dec 20, 2023
1 parent bdf9050 commit 89e95b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions detectors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
2 changes: 1 addition & 1 deletion detectors/avoid-panic-error/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion detectors/avoid-panic-error/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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! {
Expand Down

0 comments on commit 89e95b1

Please sign in to comment.