From 94e4c394e757c77c9f2140dc1552ea387a1ce3d0 Mon Sep 17 00:00:00 2001 From: Miguel Medina Ballesteros Date: Fri, 23 Dec 2022 14:19:25 +0100 Subject: [PATCH] Swap assert by debug_assert for recovereable issue. Fixes #2597 (#2599) * Swap assert by debug_assert for recovereable issue * Remove debug assert completely --- src/platform_impl/web/web_sys/scaling.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platform_impl/web/web_sys/scaling.rs b/src/platform_impl/web/web_sys/scaling.rs index 7eb82c9f..651857a6 100644 --- a/src/platform_impl/web/web_sys/scaling.rs +++ b/src/platform_impl/web/web_sys/scaling.rs @@ -70,8 +70,7 @@ impl ScaleChangeDetectorInternal { mql } - fn handler(&mut self, event: MediaQueryListEvent) { - assert!(!event.matches()); + fn handler(&mut self, _event: MediaQueryListEvent) { let mql = self .mql .take()