Fix warnings
Some checks failed
Core Repos/Rack/pipeline/head There was a failure building this commit
Some checks failed
Core Repos/Rack/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -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()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user