From bd39e03eeb3d369e8189135326c733bbe5a3bb10 Mon Sep 17 00:00:00 2001 From: Aarya Khandelwal <119049564+Aaryakhandelwal@users.noreply.github.com> Date: Mon, 25 Mar 2024 16:58:12 +0530 Subject: changed `match` to 'matches!' (#31850) --- components/script/script_thread.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'components/script/script_thread.rs') 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) } } -- cgit v1.2.3