1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-11-17 11:29:37 +00:00

Make module imports more consistent.

This commit is contained in:
Nolan Darilek 2020-12-30 14:23:31 -06:00
parent 69af3465b3
commit 06eb32b6d4
2 changed files with 6 additions and 3 deletions

View File

@ -5,7 +5,7 @@ mod speech_dispatcher;
mod tolk;
#[cfg(windows)]
pub(crate) mod winrt;
mod winrt;
#[cfg(target_arch = "wasm32")]
mod web;
@ -25,8 +25,11 @@ pub(crate) use self::speech_dispatcher::*;
#[cfg(all(windows, feature = "use_tolk"))]
pub(crate) use self::tolk::*;
#[cfg(windows)]
pub(crate) use self::winrt::*;
#[cfg(target_arch = "wasm32")]
pub use self::web::*;
pub(crate) use self::web::*;
#[cfg(target_os = "macos")]
pub(crate) use self::appkit::*;

View File

@ -198,7 +198,7 @@ impl TTS {
}
#[cfg(windows)]
Backends::WinRT => {
let tts = backends::winrt::WinRT::new()?;
let tts = backends::WinRT::new()?;
Ok(TTS(Box::new(tts)))
}
#[cfg(target_os = "macos")]