diff --git a/src/either_or_both.rs b/src/either_or_both.rs index d13763441..b7a7fc141 100644 --- a/src/either_or_both.rs +++ b/src/either_or_both.rs @@ -494,10 +494,9 @@ impl EitherOrBoth { } } -#[allow(clippy::from_over_into)] -impl Into>> for EitherOrBoth { - fn into(self) -> Option> { - match self { +impl From> for Option> { + fn from(value: EitherOrBoth) -> Self { + match value { Left(l) => Some(Either::Left(l)), Right(r) => Some(Either::Right(r)), Both(..) => None,