Eliminate more Clippy warnings.

This commit is contained in:
Nolan Darilek 2020-09-26 12:47:18 -05:00
parent dbac8a3fe0
commit c2bbc5ac04
1 changed files with 1 additions and 2 deletions

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