diff --git a/src/either_or_both.rs b/src/either_or_both.rs index 10f859d75..06b1044aa 100644 --- a/src/either_or_both.rs +++ b/src/either_or_both.rs @@ -475,9 +475,9 @@ impl EitherOrBoth { } } -impl From> for Option> { - fn from(val: EitherOrBoth) -> Self { - match val { +impl Into>> for EitherOrBoth { + fn into(self) -> Option> { + match self { EitherOrBoth::Left(l) => Some(Either::Left(l)), EitherOrBoth::Right(r) => Some(Either::Right(r)), _ => None,