Skip to content

Commit ccb5ead

Browse files
committed
Satisfy clippy
1 parent 90241cd commit ccb5ead

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
@@ -120,8 +120,8 @@ fn handle_default_arg(args: &mut Vec<String>) {
120120
let global_flags = ["-h", "--help", "-V", "--version"];
121121

122122
let needs_default_arg = match first_arg {
123-
Some(arg) if !arg.starts_with("-") || global_flags.contains(&arg.as_str()) => false,
124-
_ => true,
123+
Some(arg) => arg.starts_with("-") && !global_flags.contains(&arg.as_str()),
124+
None => true,
125125
};
126126

127127
if needs_default_arg {

0 commit comments

Comments
 (0)