diff --git a/src/main.rs b/src/main.rs index 8446196..f032121 100644 --- a/src/main.rs +++ b/src/main.rs @@ -693,6 +693,7 @@ fn main() { } else if let Some(matches) = app_matches.subcommand_matches("fmt") { if let Err(e) = fmt_command(matches) { eprintln!("{}", e); + process::exit(1); } } else { app.print_help().unwrap();