Swap assert by debug_assert for recovereable issue. Fixes #2597 (#2599)

* Swap assert by debug_assert for recovereable issue

* Remove debug assert completely
This commit is contained in:
Miguel Medina Ballesteros 2022-12-23 14:19:25 +01:00 committed by GitHub
parent f43ce2a131
commit 94e4c394e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,8 +70,7 @@ impl ScaleChangeDetectorInternal {
mql mql
} }
fn handler(&mut self, event: MediaQueryListEvent) { fn handler(&mut self, _event: MediaQueryListEvent) {
assert!(!event.matches());
let mql = self let mql = self
.mql .mql
.take() .take()