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:
bors-servo 2015-10-22 06:53:09 -06:00
commit 04c574967f

View file

@ -386,9 +386,8 @@ impl CompositorLayer for Layer<CompositorData> {
where Window: WindowMethods {
let message = MouseMoveEvent(cursor.to_untyped());
if let Some(pipeline) = compositor.pipeline(self.pipeline_id()) {
pipeline.script_chan
.send(ConstellationControlMsg::SendEvent(pipeline.id.clone(), message))
.unwrap();
let _ = pipeline.script_chan
.send(ConstellationControlMsg::SendEvent(pipeline.id.clone(), message));
}
}