aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-04-29 17:07:03 +0800
committer魏曹先生 <1992414357@qq.com>2026-04-29 17:07:03 +0800
commita1c407776897a0649deec1b7c6ee86347f91dcaf (patch)
tree49b304f1fdac6d83714bc0c07229c92f49fde506
parent376ed696ec2ff676a22bafa44c63e2c6fe606647 (diff)
Fix comment and constrain ProgramCollect generic bounds
-rw-r--r--mingling/src/lib.rs2
-rw-r--r--mingling_core/src/program/setup/basic.rs2
-rw-r--r--mingling_core/src/program/setup/general_renderer.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs
index afc8e90..ed168ff 100644
--- a/mingling/src/lib.rs
+++ b/mingling/src/lib.rs
@@ -97,7 +97,7 @@ pub mod macros {
pub use mingling_macros::program_fallback_gen;
/// Internal macro for 'gen_program' used to finally generate the program
pub use mingling_macros::program_final_gen;
- // Used to generate program setup
+ /// Used to generate program setup
pub use mingling_macros::program_setup;
/// Used to print content within a `Renderer` context
pub use mingling_macros::r_print;
diff --git a/mingling_core/src/program/setup/basic.rs b/mingling_core/src/program/setup/basic.rs
index 43c14b9..9bd4056 100644
--- a/mingling_core/src/program/setup/basic.rs
+++ b/mingling_core/src/program/setup/basic.rs
@@ -12,7 +12,7 @@ pub struct BasicProgramSetup;
impl<C> ProgramSetup<C> for BasicProgramSetup
where
- C: ProgramCollect,
+ C: ProgramCollect<Enum = C>,
{
fn setup(&mut self, program: &mut Program<C>) {
program.global_flag(["--quiet", "-q"], |p| {
diff --git a/mingling_core/src/program/setup/general_renderer.rs b/mingling_core/src/program/setup/general_renderer.rs
index 2d2ee79..299aae3 100644
--- a/mingling_core/src/program/setup/general_renderer.rs
+++ b/mingling_core/src/program/setup/general_renderer.rs
@@ -10,7 +10,7 @@ pub struct GeneralRendererSimpleSetup;
impl<C> ProgramSetup<C> for GeneralRendererSimpleSetup
where
- C: ProgramCollect,
+ C: ProgramCollect<Enum = C>,
{
fn setup(&mut self, program: &mut Program<C>) {
program.global_argument("--renderer", |p, renderer| {