1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-07-22 05:09:36 +00:00

Eliminate more Clippy warnings.

This commit is contained in:
Nolan Darilek 2020-09-26 12:47:18 -05:00
parent dbac8a3fe0
commit c2bbc5ac04

View File

@ -1,6 +1,5 @@
#[cfg(target_os = "linux")]
use std::collections::HashMap;
use std::convert::TryInto;
use std::sync::Mutex;
use lazy_static::*;
@ -93,7 +92,7 @@ impl Backend for SpeechDispatcher {
self.0.set_punctuation(Punctuation::None);
}
if let Some(id) = id {
Ok(Some(UtteranceId::SpeechDispatcher(id.try_into().unwrap())))
Ok(Some(UtteranceId::SpeechDispatcher(id)))
} else {
Err(Error::NoneError)
}