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:
parent
69af3465b3
commit
06eb32b6d4
|
@ -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::*;
|
||||
|
|
|
@ -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…
Reference in New Issue
Block a user