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

@ -35,6 +35,7 @@ impl From<SwrDitherType> for Dither {
SWR_DITHER_NS_HIGH_SHIBATA => Dither::NoiseShapingHighShibata,
SWR_DITHER_NB => Dither::None,
#[cfg(feature = "non-exhaustive-enums")]
_ => unimplemented!(),
}
}

View File

@ -14,6 +14,7 @@ impl From<SwrEngine> for Engine {
SWR_ENGINE_SOXR => Engine::SoundExchange,
SWR_ENGINE_NB => Engine::Software,
#[cfg(feature = "non-exhaustive-enums")]
_ => unimplemented!(),
}
}

View File

@ -15,6 +15,7 @@ impl From<SwrFilterType> for Filter {
SWR_FILTER_TYPE_BLACKMAN_NUTTALL => Filter::BlackmanNuttall,
SWR_FILTER_TYPE_KAISER => Filter::Kaiser,
#[cfg(feature = "non-exhaustive-enums")]
_ => unimplemented!(),
}
}