mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-23 06:49:38 +00:00
Eliminate more Clippy warnings.
This commit is contained in:
parent
dbac8a3fe0
commit
c2bbc5ac04
|
@ -1,6 +1,5 @@
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::convert::TryInto;
|
|
||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
||||||
use lazy_static::*;
|
use lazy_static::*;
|
||||||
|
@ -93,7 +92,7 @@ impl Backend for SpeechDispatcher {
|
||||||
self.0.set_punctuation(Punctuation::None);
|
self.0.set_punctuation(Punctuation::None);
|
||||||
}
|
}
|
||||||
if let Some(id) = id {
|
if let Some(id) = id {
|
||||||
Ok(Some(UtteranceId::SpeechDispatcher(id.try_into().unwrap())))
|
Ok(Some(UtteranceId::SpeechDispatcher(id)))
|
||||||
} else {
|
} else {
|
||||||
Err(Error::NoneError)
|
Err(Error::NoneError)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user