From e197d977fe6f5b463542adff92abf50f649d06dc Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 12 Aug 2024 15:34:30 +0200 Subject: [PATCH] silence another warning Signed-off-by: Wolfgang Bumiller --- src/widget/align.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/widget/align.rs b/src/widget/align.rs index b495103..5ae6d8c 100644 --- a/src/widget/align.rs +++ b/src/widget/align.rs @@ -359,8 +359,9 @@ fn get_containing_block(element: &HtmlElement) -> Option { Some(modal) if &modal == "true" => return None, Some(modal) if &modal == "false" => {} Some(modal) => { - #[cfg(debug_assertions)] - log::warn!("invalid 'aria-modal' attribute found: '{modal}"); + if cfg!(debug_assertions) { + log::warn!("invalid 'aria-modal' attribute found: '{modal}"); + } // treat invalid values as modal return None; } -- 2.39.5