Skip to content

Commit cee5796

Browse files
committed
Fix Linux and Windows builds
1 parent 36de5e6 commit cee5796

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

main/src/domain/reaper_source.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use std::collections::HashSet;
1010
use std::convert::TryInto;
1111
use std::error::Error;
1212
use std::fmt::{Display, Formatter};
13-
use std::sync::Mutex;
1413
use std::time::{Duration, Instant};
1514

1615
#[derive(Clone, Eq, PartialEq, Debug)]
@@ -59,11 +58,11 @@ pub fn say(feedback_value: SpeechSourceFeedbackValue) -> Result<(), Box<dyn Erro
5958
}
6059
#[cfg(target_os = "windows")]
6160
{
62-
Tts::default()
61+
tts::Tts::default()
6362
}
6463
}
65-
6664
use once_cell::sync::Lazy;
65+
use std::sync::Mutex;
6766
static TTS: Lazy<Result<Mutex<tts::Tts>, tts::Error>> =
6867
Lazy::new(|| get_default_tts().map(Mutex::new));
6968
let tts = TTS.as_ref()?;
@@ -76,7 +75,7 @@ pub fn say(feedback_value: SpeechSourceFeedbackValue) -> Result<(), Box<dyn Erro
7675
#[cfg(target_os = "linux")]
7776
{
7877
let _ = feedback_value;
79-
Err("not yet supported on Linux")
78+
Err("not yet supported on Linux".into())
8079
}
8180
}
8281

0 commit comments

Comments
 (0)