Skip to content

Commit 38469a3

Browse files
committed
Satisfy clippy
1 parent 61127b9 commit 38469a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rewatch/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ fn handle_default_arg(args: &mut Vec<String>) {
118118
let global_flags = ["-h", "--help", "-V", "--version"];
119119

120120
let needs_default_arg = match first_arg {
121-
Some(arg) if !arg.starts_with("-") || global_flags.contains(&arg.as_str()) => false,
122-
_ => true,
121+
Some(arg) => arg.starts_with("-") && !global_flags.contains(&arg.as_str()),
122+
None => true,
123123
};
124124

125125
if needs_default_arg {

0 commit comments

Comments
 (0)