Skip to content

Commit

Permalink
Fix a build warning in compositor.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricedesre committed May 6, 2016
1 parent b29ae63 commit 8489b30
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions components/compositing/compositor.rs
Expand Up @@ -1350,10 +1350,9 @@ impl<Window: WindowMethods> IOCompositor<Window> {
Some(root_pipeline_id) => root_pipeline_id, Some(root_pipeline_id) => root_pipeline_id,
None => return, None => return,
}; };
let root_pipeline = match self.pipeline(root_pipeline_id) { if self.pipeline(root_pipeline_id).is_none() {
Some(root_pipeline) => root_pipeline, return;
None => return, }
};


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


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

0 comments on commit 8489b30

Please sign in to comment.