Skip to content

Commit

Permalink
Fix RefCell borrows (#32276)
Browse files Browse the repository at this point in the history
* Fix RefCell borrows

* Update document.rs

fmt
  • Loading branch information
sagudev committed May 13, 2024
1 parent c0494e2 commit a483cb5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/script/dom/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a483cb5

Please sign in to comment.