forked from mirrors/gstreamer-rs
gstreamer: Fix clippy::from_over_into
This commit is contained in:
parent
46cb1595c0
commit
9890803cc6
2 changed files with 9 additions and 9 deletions
|
@ -332,9 +332,9 @@ macro_rules! impl_format_value_traits(
|
|||
}
|
||||
}
|
||||
|
||||
impl Into<Option<u64>> for $name {
|
||||
fn into(self) -> Option<u64> {
|
||||
self.0
|
||||
impl From<$name> for Option<u64> {
|
||||
fn from(v: $name) -> Self {
|
||||
v.0
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -566,9 +566,9 @@ impl From<i64> for Undefined {
|
|||
}
|
||||
}
|
||||
|
||||
impl Into<i64> for Undefined {
|
||||
fn into(self) -> i64 {
|
||||
self.0
|
||||
impl From<Undefined> for i64 {
|
||||
fn from(u: Undefined) -> Self {
|
||||
u.0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -216,9 +216,9 @@ impl From<(i32, i32)> for Fraction {
|
|||
}
|
||||
}
|
||||
|
||||
impl Into<(i32, i32)> for Fraction {
|
||||
fn into(self) -> (i32, i32) {
|
||||
self.0.into()
|
||||
impl From<Fraction> for (i32, i32) {
|
||||
fn from(f: Fraction) -> Self {
|
||||
f.0.into()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue