1
0
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:
Nolan Darilek 2020-09-26 12:47:18 -05:00
parent dbac8a3fe0
commit c2bbc5ac04

View File

@ -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)
} }