Tighten up access.

This commit is contained in:
Nolan Darilek 2020-09-23 12:23:46 -05:00
parent 251fb8d8c1
commit 532d5d9b58
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ mod av_foundation;
pub(crate) use self::speech_dispatcher::*;
#[cfg(windows)]
pub use self::tolk::*;
pub(crate) use self::tolk::*;
#[cfg(target_arch = "wasm32")]
pub use self::web::*;

View File

@ -4,10 +4,10 @@ use tolk::Tolk as TolkPtr;
use crate::{Backend, BackendId, Error, Features, UtteranceId};
pub struct Tolk(TolkPtr);
pub(crate) struct Tolk(TolkPtr);
impl Tolk {
pub fn new() -> Option<Self> {
pub(crate) fn new() -> Option<Self> {
info!("Initializing Tolk backend");
let tolk = TolkPtr::new();
if tolk.detect_screen_reader().is_some() {