use crate::sync::flow::ResultFlow;
use crate::__internal::shared_step::ResultInspectStep;
impl<OkType, ErrType, InspectorFn> ResultFlow<OkType, ErrType>
for ResultInspectStep<OkType, ErrType, InspectorFn>
where
InspectorFn: Fn(&Result<OkType, ErrType>),
{
type OutputOk = OkType;
type OutputErr = ErrType;
fn apply_result(
&self,
input_result: Result<OkType, ErrType>,
) -> Result<Self::OutputOk, Self::OutputErr> {
self.apply(input_result)
}
}