diff options
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/src/main.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cli/src/main.rs b/cli/src/main.rs index c7eb2977..8030a82d 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -115,10 +115,7 @@ fn parse_args() -> StrResult<Command> { // Don't allow excess arguments. let rest = args.finish(); if !rest.is_empty() { - Err(format!( - "unexpected argument{}", - if rest.len() > 1 { "s" } else { "" } - ))?; + Err(format!("unexpected argument{}", if rest.len() > 1 { "s" } else { "" }))?; } Ok(command) |
