From fcab81aadbf66aec48654ed9e0c1a4236d2675c8 Mon Sep 17 00:00:00 2001 From: Eric R Date: Tue, 23 Jan 2024 22:29:19 -0500 Subject: [PATCH] fix: Format chained method --- examples/repl-derive.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/repl-derive.rs b/examples/repl-derive.rs index 0b163df39b0..8de9b33e4ed 100644 --- a/examples/repl-derive.rs +++ b/examples/repl-derive.rs @@ -28,8 +28,7 @@ fn main() -> Result<(), String> { fn respond(line: &str) -> Result { let args = shlex::split(line).ok_or("error: Invalid quoting")?; - let cli = Cli::try_parse_from(args) - .map_err(|e| e.to_string())?; + let cli = Cli::try_parse_from(args).map_err(|e| e.to_string())?; match cli.command { Commands::Ping => { write!(std::io::stdout(), "Pong").map_err(|e| e.to_string())?;