From 06eb32b6d4fc770477f84e1662b3d2f19435f075 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 30 Dec 2020 14:23:31 -0600 Subject: [PATCH] Make module imports more consistent. --- src/backends/mod.rs | 7 +++++-- src/lib.rs | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/backends/mod.rs b/src/backends/mod.rs index 4e61063..c36c233 100644 --- a/src/backends/mod.rs +++ b/src/backends/mod.rs @@ -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::*; diff --git a/src/lib.rs b/src/lib.rs index 81fb009..a4b94f5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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")]