Shared: Fix clippy lint in shared extractor

This commit is contained in:
Harry Maclean 2023-08-15 15:14:55 +01:00
Родитель ed40d72e4f
Коммит cc7ef5dac1
1 изменённых файлов: 1 добавлений и 8 удалений

Просмотреть файл

@ -118,14 +118,7 @@ impl Extractor {
if matches.is_empty() {
tracing::error!(?path, "No matching language found, skipping file.");
} else {
let mut languages_processed = {
// No known extractor uses more than 8 languages.
let mut v = Vec::with_capacity(8);
for _ in &self.languages {
v.push(false);
}
v
};
let mut languages_processed = vec![false; self.languages.len()];
for m in matches {
let i = glob_language_mapping[m];