find: fix two clippy warnings

This commit is contained in:
Daniel Hofstetter
2024-03-23 08:19:05 +01:00
parent ae280f7751
commit f10a2e0d8d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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));
+1 -1
View File
@@ -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()));
}