Fix RefCell borrows (#32276)

* Fix RefCell borrows

* Update document.rs

fmt
This commit is contained in:
Samson 2024-05-13 18:01:44 +02:00 committed by GitHub
parent c0494e2e83
commit a483cb5144
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.