mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Replace uses of for foo in bar.iter()
and for foo in bar.iter_mut()
closes #7197
This commit is contained in:
parent
13e7de482c
commit
0038580abf
55 changed files with 141 additions and 154 deletions
|
@ -1148,7 +1148,7 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
|
|||
let pipeline = self.pipelines.get(&frame.current).unwrap();
|
||||
let _ = pipeline.script_chan.send(ConstellationControlMsg::Resize(pipeline.id, new_size));
|
||||
|
||||
for pipeline_id in frame.prev.iter().chain(frame.next.iter()) {
|
||||
for pipeline_id in frame.prev.iter().chain(&frame.next) {
|
||||
let pipeline = self.pipelines.get(pipeline_id).unwrap();
|
||||
let _ = pipeline.script_chan.send(ConstellationControlMsg::ResizeInactive(pipeline.id, new_size));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue