mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
@ -70,9 +70,9 @@ struct DroppableField {
|
|||
impl Drop for DroppableField {
|
||||
fn drop(&mut self) {
|
||||
let worklet_id = self.worklet_id;
|
||||
self.thread_pool.get_mut().map(|thread_pool| {
|
||||
if let Some(thread_pool) = self.thread_pool.get_mut() {
|
||||
thread_pool.exit_worklet(worklet_id);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue