From 532d5d9b580a15e7abad162bc291cc093f9d1df1 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 23 Sep 2020 12:23:46 -0500 Subject: [PATCH] Tighten up access. --- src/backends/mod.rs | 2 +- src/backends/tolk.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backends/mod.rs b/src/backends/mod.rs index 3e7106b..6274692 100644 --- a/src/backends/mod.rs +++ b/src/backends/mod.rs @@ -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::*; diff --git a/src/backends/tolk.rs b/src/backends/tolk.rs index 0be20d1..66c88e7 100644 --- a/src/backends/tolk.rs +++ b/src/backends/tolk.rs @@ -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 { + pub(crate) fn new() -> Option { info!("Initializing Tolk backend"); let tolk = TolkPtr::new(); if tolk.detect_screen_reader().is_some() {