mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-23 02:59:37 +00:00
Eliminate more Clippy warnings.
This commit is contained in:
parent
dbac8a3fe0
commit
c2bbc5ac04
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user