Skip to content

Commit

Permalink
fix: Format chained method
Browse files Browse the repository at this point in the history
  • Loading branch information
eddique committed Jan 24, 2024
1 parent 3216a64 commit fcab81a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/repl-derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ fn main() -> Result<(), String> {

fn respond(line: &str) -> Result<bool, String> {
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())?;
Expand Down

0 comments on commit fcab81a

Please sign in to comment.