diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-04 09:30:44 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-04 11:38:09 +0100 |
| commit | eb951c008beea502042db4a3a0e8d1f8b51f6f52 (patch) | |
| tree | 9856ee4ed0222222669de10e616a580b2a60135e /cli/src/main.rs | |
| parent | 33928a00dc58250e24da1dae4e5db17e7b598d70 (diff) | |
Style changes
Diffstat (limited to 'cli/src/main.rs')
| -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) |
