diff options
Diffstat (limited to 'mingling_core')
| -rw-r--r-- | mingling_core/src/program/collection.rs | 2 | ||||
| -rw-r--r-- | mingling_core/src/program/collection/mock.rs | 2 | ||||
| -rw-r--r-- | mingling_core/src/program/exec.rs | 8 |
3 files changed, 4 insertions, 8 deletions
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<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(), } } |
