Skip to content

Commit 28fd802

Browse files
hanbingssylvestre
authored andcommitted
Run cargo clippy.
1 parent 3ccdd99 commit 28fd802

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/find/matchers/exec.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,13 @@ impl Matcher for SingleExecMatcher {
7474
self.executable,
7575
path_to_file.to_string_lossy()
7676
);
77+
#[allow(clippy::explicit_write)]
7778
write!(stdout(), "{}", tips).unwrap();
7879
stdout().flush().unwrap();
7980

8081
let mut input = String::new();
8182
let _result = stdin().read_line(&mut input).unwrap();
82-
if !input.trim().contains("y") {
83+
if !input.trim().contains('y') {
8384
return false;
8485
}
8586
}

0 commit comments

Comments
 (0)