diff options
author | Tim Kuehn <tkuehn@cmu.edu> | 2013-07-31 15:52:43 -0700 |
---|---|---|
committer | Tim Kuehn <tkuehn@cmu.edu> | 2013-07-31 15:52:43 -0700 |
commit | c3d19c531b0dc89131e7345a37934b3d46513b59 (patch) | |
tree | 42080dfd7d5967b7702f5083beaa42129cebf3fd /src | |
parent | 8eac64b0aec9dcec3e79e292487e7759ebe1d189 (diff) | |
download | servo-c3d19c531b0dc89131e7345a37934b3d46513b59.tar.gz servo-c3d19c531b0dc89131e7345a37934b3d46513b59.zip |
use consume_iter() instead of iter().transform(|&x| x)
Diffstat (limited to 'src')
-rw-r--r-- | src/components/main/constellation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/main/constellation.rs b/src/components/main/constellation.rs index 6c3d16e7420..cb474b088d7 100644 --- a/src/components/main/constellation.rs +++ b/src/components/main/constellation.rs @@ -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() { |