mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
changed match
to 'matches!' (#31850)
This commit is contained in:
parent
9a76dd9325
commit
bd39e03eeb
29 changed files with 185 additions and 229 deletions
|
@ -112,10 +112,7 @@ impl QueuedTaskConversion for ServiceWorkerScriptMsg {
|
|||
}
|
||||
|
||||
fn is_wake_up(&self) -> bool {
|
||||
match self {
|
||||
ServiceWorkerScriptMsg::WakeUp => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(self, ServiceWorkerScriptMsg::WakeUp)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue