mirror of
https://github.com/servo/servo.git
synced 2025-07-16 11:53:39 +01:00
Auto merge of #8149 - nxnfufunezn:compositor_panics-8102, r=jdm
Fixes #8102 Removed unwrap on result of send call @jdm <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8149) <!-- Reviewable:end -->
This commit is contained in:
commit
04c574967f
1 changed files with 2 additions and 3 deletions
|
@ -386,9 +386,8 @@ impl CompositorLayer for Layer<CompositorData> {
|
||||||
where Window: WindowMethods {
|
where Window: WindowMethods {
|
||||||
let message = MouseMoveEvent(cursor.to_untyped());
|
let message = MouseMoveEvent(cursor.to_untyped());
|
||||||
if let Some(pipeline) = compositor.pipeline(self.pipeline_id()) {
|
if let Some(pipeline) = compositor.pipeline(self.pipeline_id()) {
|
||||||
pipeline.script_chan
|
let _ = pipeline.script_chan
|
||||||
.send(ConstellationControlMsg::SendEvent(pipeline.id.clone(), message))
|
.send(ConstellationControlMsg::SendEvent(pipeline.id.clone(), message));
|
||||||
.unwrap();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue