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

@ -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,