Skip to content
Myr

Fix some clippy warnings

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by sharkdp · parent 614f576 · Browse files · 3 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+3 added−3 removed

  • tests:+1 added−1 removed
  • other:+2 added−2 removed

3 files+3 added−3 removed

modified:src/main.rs+1 added-1 removed
148 unmodified lines
149 command,150 exclude_patterns: matches151 .values_of("exclude")152 .map(|v| v.map(|p| String::from("!") + p).collect())153 .unwrap_or(vec![]),153 .unwrap_or_else(|| vec![]),154 };155156 match RegexBuilder::new(pattern)157 .case_insensitive(!config.case_sensitive)
6 unmodified lines
modified:src/walk.rs+1 added-1 removed
49 unmodified lines
50 let threads = config.threads;5152 let mut override_builder = OverrideBuilder::new(root);5354 for pattern in config.exclude_patterns.iter() {54 for pattern in &config.exclude_patterns {55 let res = override_builder.add(pattern);56 if res.is_err() {57 error(&format!("Error: malformed exclude pattern '{}'", pattern));58 }
174 unmodified lines
modified:tests/tests.rs+1 added-1 removed
467 unmodified lines
468469 let parent_parent = if cfg!(windows) { ".." } else { "../.." };470 te.assert_output_subdirectory(471 "symlink",472 &["", &parent_parent],472 &["", parent_parent],473 &format!(474 "{dir}/a.foo475 {dir}/e1 e2476 {dir}/one
197 unmodified lines