Skip to content

Commit

Permalink
Auto merge of #7187 - Ms2ger:use-any, r=SimonSapin
Browse files Browse the repository at this point in the history
Use Iterator::any in collect_old_layers.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7187)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Aug 13, 2015
2 parents c1cc2c1 + ee702a7 commit 9fda72d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/compositing/compositor_layer.rs
Expand Up @@ -302,9 +302,9 @@ impl CompositorLayer for Layer<CompositorData> {
true
} else {
// Keep this layer if it exists in the new layer list.
let keep_layer = new_layers.iter().position(|properties| {
let keep_layer = new_layers.iter().any(|properties| {
properties.id == extra_data.id
}).is_some();
});

// When removing a layer, clear any tiles and surfaces
// associated with the layer.
Expand Down

0 comments on commit 9fda72d

Please sign in to comment.