Skip to content

Commit

Permalink
Swap assert by debug_assert for recovereable issue. Fixes #2597 (#2599)
Browse files Browse the repository at this point in the history
* Swap assert by debug_assert for recovereable issue

* Remove debug assert completely
  • Loading branch information
Maximetinu authored Dec 23, 2022
1 parent f43ce2a commit 94e4c39
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/platform_impl/web/web_sys/scaling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 94e4c39

Please sign in to comment.