Open nithinmuthukumar opened 4 months ago
The simplest solution is barred by the impl being the same definition, specialization is unstable
impl<F, C: Ctx> IntoHook<(), C> for F where for<'a, 'b> &'a F: Fn(&C) -> Result<()>, { type Hook = FunctionHook<C, Self>; fn into_system(self) -> Self::Hook { FunctionHook { f: self, marker: Default::default(), } } } impl<F, C: Ctx> IntoHook<(), C> for F where for<'a, 'b> &'a F: Fn(&Shell, &C) -> Result<()>, { type Hook = FunctionHook<(Shell, C), Self>; fn into_system(self) -> Self::Hook { FunctionHook { f: self, marker: Default::default(), } } }
Figure out a way to work around this
The simplest solution is barred by the impl being the same definition, specialization is unstable
Figure out a way to work around this