Fix some build warnings.

This commit is contained in:
Ms2ger 2016-06-01 10:35:45 +02:00
parent 09e6f4ac54
commit 46ea78e960
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