From 1e55c43153d9fe32b06e5201fdb21582e139edf1 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 30 Mar 2022 15:13:28 -0500 Subject: [PATCH] WIP: Use correct type in backend implementation. --- src/backends/speech_dispatcher.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backends/speech_dispatcher.rs b/src/backends/speech_dispatcher.rs index 2ccea1d..cf50145 100644 --- a/src/backends/speech_dispatcher.rs +++ b/src/backends/speech_dispatcher.rs @@ -91,7 +91,7 @@ impl SpeechDispatcher { } } -impl Backend for SpeechDispatcher { +impl Backend for SpeechDispatcher { fn id(&self) -> Option { Some(BackendId::SpeechDispatcher(self.0.client_id())) } @@ -203,14 +203,14 @@ impl Backend for SpeechDispatcher { Ok(*is_speaking) } - fn voices(&self) -> Result>, Error> { + fn voices(&self) -> Result>, Error> { let rv = self .0 .list_synthesis_voices()? .iter() .cloned() .map(|v| Voice(Box::new(v))) - .collect::>>(); + .collect::>>(); Ok(rv) }