Suppress unused warning on announce() accessibility helper

This commit is contained in:
lashman
2026-02-27 10:10:21 +02:00
parent 4b8592801b
commit 2f56439b6e

View File

@@ -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<gtk::Widget>, text: &str) {
let label = gtk::Label::builder()
.label(text)