diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-14 17:47:15 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-14 18:02:09 +0800 |
| commit | 9c8fe13c2629a4318bd12815c07cef1371ba85a2 (patch) | |
| tree | 9e9af625832a1f872f5523dbf9d9730af0ef90c8 /mingling/src/setups/basic.rs | |
| parent | f3c134615c56dc7372e47a216dddca72250a3308 (diff) | |
feat(core): move config types to public config module
Refactor program configuration types into a dedicated public `config`
module under `mingling_core`, making `StructuralRendererSetting`
accessible via `mingling_core::config` instead of the crate root.
Update all internal references and setup modules to use the new
`config::` path convention.
Diffstat (limited to 'mingling/src/setups/basic.rs')
| -rw-r--r-- | mingling/src/setups/basic.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mingling/src/setups/basic.rs b/mingling/src/setups/basic.rs index 0d41d14..e2246e0 100644 --- a/mingling/src/setups/basic.rs +++ b/mingling/src/setups/basic.rs @@ -2,7 +2,8 @@ #![allow(deprecated)] use mingling_core::{ - ConfirmationMode, Flag, InteractionMode, Program, ProgramCollect, YesAssumption, + Flag, Program, ProgramCollect, + config::{ConfirmationMode, ErrorOutput, InteractionMode, RenderOutput, YesAssumption}, setup::ProgramSetup, }; @@ -95,8 +96,8 @@ where { fn setup(self, program: &mut Program<C>) { program.global_flag(self.flag, |p| { - p.stdout_setting.render_output = mingling_core::RenderOutput::Hide; - p.stdout_setting.error_output = mingling_core::ErrorOutput::Hide; + p.stdout_setting.render_output = RenderOutput::Hide; + p.stdout_setting.error_output = ErrorOutput::Hide; }); } } |
