gstreamer: Fix clippy::from_over_into

This commit is contained in:
Marijn Suijten 2021-01-07 20:08:36 +01:00
parent 46cb1595c0
commit 9890803cc6
2 changed files with 9 additions and 9 deletions

View file

@ -332,9 +332,9 @@ macro_rules! impl_format_value_traits(
} }
} }
impl Into<Option<u64>> for $name { impl From<$name> for Option<u64> {
fn into(self) -> Option<u64> { fn from(v: $name) -> Self {
self.0 v.0
} }
} }
@ -566,9 +566,9 @@ impl From<i64> for Undefined {
} }
} }
impl Into<i64> for Undefined { impl From<Undefined> for i64 {
fn into(self) -> i64 { fn from(u: Undefined) -> Self {
self.0 u.0
} }
} }

View file

@ -216,9 +216,9 @@ impl From<(i32, i32)> for Fraction {
} }
} }
impl Into<(i32, i32)> for Fraction { impl From<Fraction> for (i32, i32) {
fn into(self) -> (i32, i32) { fn from(f: Fraction) -> Self {
self.0.into() f.0.into()
} }
} }