Auto merge of #11538 - Ms2ger:warnings, r=emilio

Fix some build warnings.

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because refactoring

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11538)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-06-01 15:43:58 -05:00
commit 0594d58bc8
4 changed files with 6 additions and 12 deletions

View file

@ -1932,12 +1932,10 @@ impl<Window: WindowMethods> IOCompositor<Window> {
scroll_offset: scroll_layer_state.scroll_offset,
};
let pipeline_id = scroll_layer_state.pipeline_id;
match stacking_context_scroll_states_per_pipeline.entry(pipeline_id) {
Vacant(mut entry) => {
entry.insert(vec![stacking_context_scroll_state]);
}
Occupied(mut entry) => entry.get_mut().push(stacking_context_scroll_state),
}
stacking_context_scroll_states_per_pipeline
.entry(pipeline_id)
.or_insert(vec![])
.push(stacking_context_scroll_state);
}
for (pipeline_id, stacking_context_scroll_states) in