Skip to content

Commit 7ffcee7

Browse files
committed
Formatting fix.
1 parent 395ca10 commit 7ffcee7

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

crates/detector-erlang/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use scanner_core::{Detector, Language, ScanUnit, Emitter, Prefilter};
21
use anyhow::Result;
2+
use scanner_core::{Detector, Emitter, Language, Prefilter, ScanUnit};
33
use std::collections::BTreeSet;
44

55
pub struct ErlangDetector;
@@ -15,7 +15,11 @@ impl Detector for ErlangDetector {
1515

1616
fn prefilter(&self) -> Prefilter {
1717
Prefilter {
18-
extensions: BTreeSet::from([".erl".to_string(), ".hrl".to_string(), ".beam".to_string()]),
18+
extensions: BTreeSet::from([
19+
".erl".to_string(),
20+
".hrl".to_string(),
21+
".beam".to_string(),
22+
]),
1923
substrings: BTreeSet::new(),
2024
}
2125
}

crates/scanner-core/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,8 +1055,7 @@ impl PatternDetector {
10551055
}
10561056
}
10571057
}
1058-
let should_report =
1059-
(lib.import.is_empty() || matched_import) && api_hits > 0;
1058+
let should_report = (lib.import.is_empty() || matched_import) && api_hits > 0;
10601059
if should_report {
10611060
let finding = Finding {
10621061
language: unit.lang,

0 commit comments

Comments
 (0)