mirror of
https://github.com/servo/servo.git
synced 2025-08-01 11:40:30 +01:00
Fix some build warnings.
This commit is contained in:
parent
09e6f4ac54
commit
46ea78e960
4 changed files with 6 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue