|
|
@ -20,9 +20,10 @@ impl Try for LibCtruError { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fn branch(self) -> ControlFlow<Self::Residual, Self::Output> { |
|
|
|
fn branch(self) -> ControlFlow<Self::Residual, Self::Output> { |
|
|
|
match self.0 { |
|
|
|
if self.0 < 0 { |
|
|
|
0 => ControlFlow::Continue(()), |
|
|
|
ControlFlow::Break(Err(self.into())) |
|
|
|
_ => ControlFlow::Break(Err(self.into())), |
|
|
|
} else { |
|
|
|
|
|
|
|
ControlFlow::Continue(()) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|