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 --- mingling_core/src/program/collection.rs | 2 +- mingling_core/src/program/collection/mock.rs | 2 +- mingling_core/src/program/exec.rs | 8 ++------ 3 files changed, 4 insertions(+), 8 deletions(-) (limited to 'mingling_core') diff --git a/mingling_core/src/program/collection.rs b/mingling_core/src/program/collection.rs index cbb9363..d5aab4b 100644 --- a/mingling_core/src/program/collection.rs +++ b/mingling_core/src/program/collection.rs @@ -7,7 +7,7 @@ use crate::Dispatcher; use crate::{AnyOutput, ChainProcess, Groupped, RenderResult}; #[cfg(feature = "structural_renderer")] -use crate::{error::StructuralRendererSerializeError, StructuralRendererSetting}; +use crate::{StructuralRendererSetting, error::StructuralRendererSerializeError}; #[cfg(feature = "comp")] use crate::{ShellContext, Suggest}; diff --git a/mingling_core/src/program/collection/mock.rs b/mingling_core/src/program/collection/mock.rs index 20e6658..9b2e7af 100644 --- a/mingling_core/src/program/collection/mock.rs +++ b/mingling_core/src/program/collection/mock.rs @@ -7,7 +7,7 @@ use crate::Dispatcher; use crate::{AnyOutput, ChainProcess, Groupped, ProgramCollect, RenderResult}; #[cfg(feature = "structural_renderer")] -use crate::{error::StructuralRendererSerializeError, StructuralRendererSetting}; +use crate::{StructuralRendererSetting, error::StructuralRendererSerializeError}; #[cfg(feature = "comp")] use crate::{ShellContext, Suggest}; 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>(program: &Program, any: AnyOutput) { #[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>( { #[allow(unreachable_patterns)] match program.structural_renderer_name { - super::StructuralRendererSetting::Disable => { - C::render_help(entry) - } + super::StructuralRendererSetting::Disable => C::render_help(entry), _ => RenderResult::default(), } } -- cgit