Feature mismatch.

This commit is contained in:
Nolan Darilek 2022-03-10 12:58:56 -06:00
parent bbae5dc983
commit 6aacce2d73

View File

@ -415,7 +415,7 @@ impl Connection {
pub fn set_voice_type(&self, voice_type: VoiceType) -> Result<(), Error> {
#[cfg(feature = "0.10.0")]
let v = unsafe { spd_set_voice_type(*self.0, voice_type as i32) };
#[cfg(not(feature = "0.10.0"))]
#[cfg(not(feature = "0.10"))]
let v = unsafe { spd_set_voice_type(*self.0, voice_type as u32) };
c_int_to_result(v)
}