From 50e44c77a76469ebce5f3a00e8bc31e037fbf2fa Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 7 Feb 2024 20:34:37 -0800 Subject: [PATCH] Fix clippy::from_over_into --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 83465af..0c54a0c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1124,9 +1124,9 @@ impl FromStr for Ratio { } } -impl Into<(T, T)> for Ratio { - fn into(self) -> (T, T) { - (self.numer, self.denom) +impl From> for (T, T) { + fn from(val: Ratio) -> Self { + (val.numer, val.denom) } }