Fix linting errors

This commit is contained in:
Polochon-street
2021-07-06 19:05:15 +02:00
parent 67fded37d0
commit 19ab5f67ad
33 changed files with 109 additions and 108 deletions

View File

@ -26,10 +26,10 @@ impl From<AVMediaType> for Type {
}
}
impl Into<AVMediaType> for Type {
impl From<Type> for AVMediaType {
#[inline(always)]
fn into(self) -> AVMediaType {
match self {
fn from(value: Type) -> AVMediaType {
match value {
Type::Unknown => AVMEDIA_TYPE_UNKNOWN,
Type::Video => AVMEDIA_TYPE_VIDEO,
Type::Audio => AVMEDIA_TYPE_AUDIO,