mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
clippy: Fix option_map_unit_fn warnings (#31906)
This commit is contained in:
parent
a5bcae212a
commit
da76ebabe9
11 changed files with 43 additions and 30 deletions
|
@ -267,10 +267,9 @@ impl WorkerMethods for Worker {
|
|||
self.terminated.set(true);
|
||||
|
||||
// Step 3
|
||||
self.context_for_interrupt
|
||||
.borrow()
|
||||
.as_ref()
|
||||
.map(|cx| cx.request_interrupt());
|
||||
if let Some(cx) = self.context_for_interrupt.borrow().as_ref() {
|
||||
cx.request_interrupt()
|
||||
}
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#handler-worker-onmessage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue