diff options
Diffstat (limited to 'mingling_core/src/program/setup.rs')
| -rw-r--r-- | mingling_core/src/program/setup.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mingling_core/src/program/setup.rs b/mingling_core/src/program/setup.rs index f095ed3..86228b9 100644 --- a/mingling_core/src/program/setup.rs +++ b/mingling_core/src/program/setup.rs @@ -8,19 +8,19 @@ mod general_renderer; #[cfg(feature = "general_renderer")] pub use general_renderer::*; -pub trait ProgramSetup<C, G> +pub trait ProgramSetup<C> where C: ProgramCollect, { - fn setup(&mut self, program: &mut Program<C, G>); + fn setup(&mut self, program: &mut Program<C>); } -impl<C, G> Program<C, G> +impl<C> Program<C> where C: ProgramCollect, { /// Load and execute init logic - pub fn with_setup<S: ProgramSetup<C, G> + 'static>(&mut self, mut setup: S) -> S { + pub fn with_setup<S: ProgramSetup<C> + 'static>(&mut self, mut setup: S) -> S { S::setup(&mut setup, self); setup } |
