mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fix RefCell borrows (#32276)
* Fix RefCell borrows * Update document.rs fmt
This commit is contained in:
parent
c0494e2e83
commit
a483cb5144
1 changed files with 2 additions and 3 deletions
|
@ -3258,11 +3258,10 @@ impl Document {
|
|||
return;
|
||||
}
|
||||
|
||||
*self.mouse_move_event_index.borrow_mut() =
|
||||
Some(self.pending_compositor_events.borrow().len());
|
||||
*self.mouse_move_event_index.borrow_mut() = Some(pending_compositor_events.len());
|
||||
}
|
||||
|
||||
self.pending_compositor_events.borrow_mut().push(event);
|
||||
pending_compositor_events.push(event);
|
||||
}
|
||||
|
||||
/// Get pending compositor events, for processing within an `update_the_rendering` task.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue