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

@ -702,10 +702,10 @@ impl From<AVPixelFormat> for Pixel {
}
}
impl Into<AVPixelFormat> for Pixel {
impl From<Pixel> for AVPixelFormat {
#[inline]
fn into(self) -> AVPixelFormat {
match self {
fn from(value: Pixel) -> AVPixelFormat {
match value {
Pixel::None => AV_PIX_FMT_NONE,
Pixel::YUV420P => AV_PIX_FMT_YUV420P,

View File

@ -101,10 +101,10 @@ impl From<&'static str> for Sample {
}
}
impl Into<AVSampleFormat> for Sample {
impl From<Sample> for AVSampleFormat {
#[inline]
fn into(self) -> AVSampleFormat {
match self {
fn from(value: Sample) -> AVSampleFormat {
match value {
Sample::None => AV_SAMPLE_FMT_NONE,
Sample::U8(Type::Packed) => AV_SAMPLE_FMT_U8,