From 570d670e78158bfa8b600855ab640069178d60da Mon Sep 17 00:00:00 2001 From: mgros Date: Sat, 24 Oct 2026 04:26:22 +0200 Subject: [PATCH] Rename `is_valid` to `is_empty` in speech.rs --- src/speech.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/speech.rs b/src/speech.rs index 631b6266..96721715 100644 --- a/src/speech.rs +++ b/src/speech.rs @@ -2083,7 +2083,7 @@ impl FilesAndTimes { self.ft.clear(); } - pub fn is_valid(&self) -> bool { + pub fn is_empty(&self) -> bool { self.ft.is_empty() } @@ -2234,11 +2234,11 @@ pub fn invalidate_braille_caches() { // Used for testing the cache is invalidated when the language changes in prefs.rs impl SpeechRules { pub(crate) fn rule_files_cache_is_empty(&self) -> bool { - self.rule_files.is_valid() + self.rule_files.is_empty() } pub(crate) fn definitions_files_cache_is_empty(&self) -> bool { - self.definitions_files.borrow().is_valid() + self.definitions_files.borrow().is_empty() } pub(crate) fn definitions_files_cache_path(&self) -> PathBuf {