diff options
author | Aarya Khandelwal <119049564+Aaryakhandelwal@users.noreply.github.com> | 2024-03-25 16:58:12 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-25 11:28:12 +0000 |
commit | bd39e03eeb3d369e8189135326c733bbe5a3bb10 (patch) | |
tree | 32bb57b214bed8890d359701ef326f7231255eff /components/script/script_thread.rs | |
parent | 9a76dd9325794346163e858831abb97de4b41e41 (diff) | |
download | servo-bd39e03eeb3d369e8189135326c733bbe5a3bb10.tar.gz servo-bd39e03eeb3d369e8189135326c733bbe5a3bb10.zip |
changed `match` to 'matches!' (#31850)
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 2428bb6a406..44e9337fd46 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -345,10 +345,7 @@ impl QueuedTaskConversion for MainThreadScriptMsg { } fn is_wake_up(&self) -> bool { - match self { - MainThreadScriptMsg::WakeUp => true, - _ => false, - } + matches!(self, MainThreadScriptMsg::WakeUp) } } |