mirror of
https://github.com/uutils/findutils.git
synced 2026-06-10 15:48:30 -07:00
find: fix two clippy warnings
This commit is contained in:
@@ -305,7 +305,7 @@ mod tests {
|
||||
.write(true)
|
||||
.open(&foo_path)
|
||||
.expect("open temp file");
|
||||
let _ = f.write(&mut buffer);
|
||||
let _ = f.write(&buffer);
|
||||
}
|
||||
|
||||
thread::sleep(Duration::from_secs(2));
|
||||
|
||||
@@ -160,7 +160,7 @@ mod tests {
|
||||
let deps = FakeDependencies::new();
|
||||
|
||||
for typ in &["b", "c", "p", "s"] {
|
||||
let matcher = TypeMatcher::new(typ.as_ref()).unwrap();
|
||||
let matcher = TypeMatcher::new(typ).unwrap();
|
||||
assert!(!matcher.matches(&dir, &mut deps.new_matcher_io()));
|
||||
assert!(!matcher.matches(&file, &mut deps.new_matcher_io()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user