diff options
Diffstat (limited to 'mingling_core')
| -rw-r--r-- | mingling_core/src/any.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mingling_core/src/any.rs b/mingling_core/src/any.rs index ad02b0c..b115e28 100644 --- a/mingling_core/src/any.rs +++ b/mingling_core/src/any.rs @@ -1,4 +1,4 @@ -use crate::Groupped; +use crate::{Groupped, ProgramCollect}; use crate::error::ChainProcessError; #[doc(hidden)] @@ -136,6 +136,12 @@ impl<G> From<AnyOutput<G>> for ChainProcess<G> { } } +impl<G> From<()> for ChainProcess<G> where G: ProgramCollect<Enum = G> { + fn from(_v: ()) -> Self { + G::build_empty_result().route_chain() + } +} + #[cfg(test)] mod tests { use super::*; |
