aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/program/exec.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 /mingling_core/src/program/exec.rs
parent810536fb1f068f969af316be0450a1edacfe8e28 (diff)
style: Reorder imports and reformat code with cargo fmt
Diffstat (limited to 'mingling_core/src/program/exec.rs')
-rw-r--r--mingling_core/src/program/exec.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/mingling_core/src/program/exec.rs b/mingling_core/src/program/exec.rs
index 3224c82..f5bdc2b 100644
--- a/mingling_core/src/program/exec.rs
+++ b/mingling_core/src/program/exec.rs
@@ -467,9 +467,7 @@ fn render<C: ProgramCollect<Enum = C>>(program: &Program<C>, any: AnyOutput<C>)
{
#[allow(unreachable_patterns)]
match program.structural_renderer_name {
- super::StructuralRendererSetting::Disable => {
- C::render(any)
- }
+ super::StructuralRendererSetting::Disable => C::render(any),
_ => C::structural_render(any, &program.structural_renderer_name).unwrap(),
}
}
@@ -489,9 +487,7 @@ fn render_help<C: ProgramCollect<Enum = C>>(
{
#[allow(unreachable_patterns)]
match program.structural_renderer_name {
- super::StructuralRendererSetting::Disable => {
- C::render_help(entry)
- }
+ super::StructuralRendererSetting::Disable => C::render_help(entry),
_ => RenderResult::default(),
}
}