Browse Source

Make module imports more consistent.

master
Nolan Darilek 2 months ago
parent
commit
06eb32b6d4
  1. 7
      src/backends/mod.rs
  2. 2
      src/lib.rs

7
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::*;

2
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")]

Loading…
Cancel
Save