aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/asset/dispatcher.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mingling_core/src/asset/dispatcher.rs')
-rw-r--r--mingling_core/src/asset/dispatcher.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/mingling_core/src/asset/dispatcher.rs b/mingling_core/src/asset/dispatcher.rs
index cf8fcca..95b3305 100644
--- a/mingling_core/src/asset/dispatcher.rs
+++ b/mingling_core/src/asset/dispatcher.rs
@@ -1,6 +1,6 @@
use std::fmt::Display;
-use crate::{ChainProcess, Program, asset::node::Node};
+use crate::{ChainProcess, Program, ProgramCollect, asset::node::Node};
/// Dispatches user input commands to specific [ChainProcess](./enum.ChainProcess.html)
///
@@ -27,7 +27,10 @@ where
}
}
-impl<C: crate::program::ProgramCollect> Program<C> {
+impl<C> Program<C>
+where
+ C: ProgramCollect<Enum = C>,
+{
/// Adds a dispatcher to the program.
#[cfg(not(feature = "dispatch_tree"))]
pub fn with_dispatcher<Disp>(&mut self, dispatcher: Disp)