mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
use consume_iter() instead of iter().transform(|&x| x)
This commit is contained in:
parent
8eac64b0ae
commit
c3d19c531b
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ impl Constellation {
|
|||
let matching_pending_frames = do self.pending_frames.iter().filter_map |frame_change| {
|
||||
frame_change.after.find_mut(source_pipeline_id)
|
||||
};
|
||||
matching_navi_frames.iter().transform(|&x| x).chain_(matching_pending_frames).collect()
|
||||
matching_navi_frames.consume_iter().chain_(matching_pending_frames).collect()
|
||||
};
|
||||
|
||||
if frame_trees.is_empty() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue