From 85c8986f26031cc11ed1e1da77fdf099b5814381 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 11 Jul 2026 16:10:53 +0800 Subject: style: Reorder imports and reformat code with cargo fmt --- mling/src/cli.rs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'mling/src/cli.rs') diff --git a/mling/src/cli.rs b/mling/src/cli.rs index bfe602c..67d2ef0 100644 --- a/mling/src/cli.rs +++ b/mling/src/cli.rs @@ -177,10 +177,19 @@ pub fn render_mling_help(_prev: ResultMlingHelp, ec: &mut ResExitCode) -> Render #[renderer] pub fn render_unknown_command(prev: ResultUnknownCommand, ec: &mut ResExitCode) -> RenderResult { let mut result = RenderResult::default(); - writeln!(result, "{}", eformat_cargo!("no such command: `{}`", prev.bright_yellow().bold())).ok(); + writeln!( + result, + "{}", + eformat_cargo!("no such command: `{}`", prev.bright_yellow().bold()) + ) + .ok(); writeln!(result).ok(); - writeln!(result, "{}", hformat_cargo!("view all commands with `cargo help mling`")) - .ok(); + writeln!( + result, + "{}", + hformat_cargo!("view all commands with `cargo help mling`") + ) + .ok(); ec.exit_code = 101; result } -- cgit