From 2f56439b6ef9a26c164876b142d8051f7874dd91 Mon Sep 17 00:00:00 2001 From: lashman Date: Fri, 27 Feb 2026 10:10:21 +0200 Subject: [PATCH] Suppress unused warning on announce() accessibility helper --- src/ui/widgets.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/widgets.rs b/src/ui/widgets.rs index 238f979..d3bc9f8 100644 --- a/src/ui/widgets.rs +++ b/src/ui/widgets.rs @@ -156,6 +156,7 @@ pub fn copy_button(text_to_copy: &str, toast_overlay: Option<&adw::ToastOverlay> /// Inserts a hidden label with AccessibleRole::Alert into the given container, /// which causes AT-SPI to announce the text to screen readers. /// The label auto-removes after a short delay. +#[allow(dead_code)] pub fn announce(container: &impl gtk::prelude::IsA, text: &str) { let label = gtk::Label::builder() .label(text)