From eb951c008beea502042db4a3a0e8d1f8b51f6f52 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 4 Nov 2022 09:30:44 +0100 Subject: Style changes --- cli/src/main.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cli/src') 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 { // 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) -- cgit v1.2.3