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

View File

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