aboutsummaryrefslogtreecommitdiff
path: root/mling/src/cli.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-11 16:10:53 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-11 16:10:53 +0800
commit85c8986f26031cc11ed1e1da77fdf099b5814381 (patch)
treed4a53fadc683988fd30d1ee07de23a11b9d37ac6 /mling/src/cli.rs
parent810536fb1f068f969af316be0450a1edacfe8e28 (diff)
style: Reorder imports and reformat code with cargo fmt
Diffstat (limited to 'mling/src/cli.rs')
-rw-r--r--mling/src/cli.rs15
1 files changed, 12 insertions, 3 deletions
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
}