add feature non-exhaustive-enums

This commit is contained in:
FreezyLemon
2022-10-22 17:28:37 +02:00
committed by Josh Holmer
parent 28c356dd98
commit 92a8c6a9d8
22 changed files with 25 additions and 1 deletions

View File

@ -743,6 +743,7 @@ impl From<AVPixelFormat> for Pixel {
#[cfg(feature = "rpi")]
AV_PIX_FMT_RPI4_10 => Pixel::RPI4_10,
#[cfg(feature = "non-exhaustive-enums")]
_ => unimplemented!(),
}
}

View File

@ -87,6 +87,7 @@ impl From<AVSampleFormat> for Sample {
AV_SAMPLE_FMT_NB => Sample::None,
#[cfg(feature = "non-exhaustive-enums")]
_ => unimplemented!(),
}
}