Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 3e83a52

Browse files
committed
replace Vec with slice in lintcheck
1 parent bb69461 commit 3e83a52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lintcheck/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ impl Crate {
309309
target_dir_index: &AtomicUsize,
310310
total_crates_to_lint: usize,
311311
config: &LintcheckConfig,
312-
lint_filter: &Vec<String>,
312+
lint_filter: &[String],
313313
server: &Option<LintcheckServer>,
314314
) -> Vec<ClippyWarning> {
315315
// advance the atomic index by one
@@ -728,7 +728,7 @@ fn read_stats_from_file(file_path: &Path) -> HashMap<String, usize> {
728728
}
729729

730730
/// print how lint counts changed between runs
731-
fn print_stats(old_stats: HashMap<String, usize>, new_stats: HashMap<&String, usize>, lint_filter: &Vec<String>) {
731+
fn print_stats(old_stats: HashMap<String, usize>, new_stats: HashMap<&String, usize>, lint_filter: &[String]) {
732732
let same_in_both_hashmaps = old_stats
733733
.iter()
734734
.filter(|(old_key, old_val)| new_stats.get::<&String>(old_key) == Some(old_val))

0 commit comments

Comments
 (0)