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()