Skip to content
Permalink
Browse files

Fix a build warning in compositor.rs

  • Loading branch information...
fabricedesre committed May 6, 2016
1 parent b29ae63 commit 8489b3004221254c83fe2b47d07d7e3d8978aa56
Showing with 6 additions and 8 deletions.
  1. +6 −8 components/compositing/compositor.rs
@@ -1350,10 +1350,9 @@ impl<Window: WindowMethods> IOCompositor<Window> {
Some(root_pipeline_id) => root_pipeline_id,
None => return,
};
let root_pipeline = match self.pipeline(root_pipeline_id) {
Some(root_pipeline) => root_pipeline,
None => return,
};
if self.pipeline(root_pipeline_id).is_none() {
return;
}

let (translated_point, translated_pipeline_id) =
webrender_api.translate_point_to_layer_space(&point.to_untyped());
@@ -1395,10 +1394,9 @@ impl<Window: WindowMethods> IOCompositor<Window> {
Some(root_pipeline_id) => root_pipeline_id,
None => return,
};
let root_pipeline = match self.pipeline(root_pipeline_id) {
Some(root_pipeline) => root_pipeline,
None => return,
};
if self.pipeline(root_pipeline_id).is_none() {
return;
}

let (translated_point, translated_pipeline_id) =
webrender_api.translate_point_to_layer_space(&cursor.to_untyped());

0 comments on commit 8489b30

Please sign in to comment.
You can’t perform that action at this time.