From 6c7935ff4589adc92459185f3e9d1f47c76af1ed Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Wed, 26 Jul 2023 23:00:30 +0200 Subject: only push supported files to processing queue --- src/index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/index.rs') diff --git a/src/index.rs b/src/index.rs index d3aab9e..92a12b6 100644 --- a/src/index.rs +++ b/src/index.rs @@ -50,7 +50,7 @@ impl Index { for entry in WalkDir::new(input_path) .into_iter() .filter_map(|e| e.ok()) { - if entry.path().is_file() { + if entry.path().is_file() && text::is_supported(entry.path().to_str().unwrap()) { nof += 1; paths.push(entry.path().to_str().unwrap().to_string()); } -- cgit v1.2.3-70-g09d2