add feature non-exhaustive-enums
This commit is contained in:
@ -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!(),
|
||||
}
|
||||
}
|
||||
|
@ -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!(),
|
||||
}
|
||||
}
|
||||
|
@ -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!(),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user