Fix warnings
Some checks failed
Core Repos/Rack/pipeline/head There was a failure building this commit

This commit is contained in:
Cameron Cordes
2021-02-15 20:12:23 -05:00
parent 5bc72ec67d
commit 42d6211bc2

View File

@@ -124,14 +124,14 @@ mod rack {
.entries
.par_iter()
.filter_map(|e| self.check_file(&e.path).ok())
.filter(|mat| mat.matches.len() > 0)
.filter(|mat| !mat.matches.is_empty())
.collect::<Vec<FileMatch>>();
self.matches.append(&mut results);
Ok(())
}
fn should_ignore(&self, gitignore: &Vec<String>, path: &str, entry: &DirEntry) -> bool {
fn should_ignore(&self, gitignore: &[String], path: &str, entry: &DirEntry) -> bool {
if self.config.use_gitignore {
let should_ignore = gitignore.iter().find(|&line| path.contains(&line.clone()));