diff options
Diffstat (limited to 'components/layout/animation.rs')
-rw-r--r-- | components/layout/animation.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/animation.rs b/components/layout/animation.rs index c9b78a50ef0..ab11433fdfa 100644 --- a/components/layout/animation.rs +++ b/components/layout/animation.rs @@ -29,7 +29,7 @@ pub fn start_transitions_if_applicable(new_animations_sender: &Sender<Animation> for i in 0..new_style.get_animation().transition_property.0.len() { // Create any property animations, if applicable. let property_animations = PropertyAnimation::from_transition(i, old_style, new_style); - for property_animation in property_animations.into_iter() { + for property_animation in property_animations { // Set the property to the initial value. property_animation.update(new_style, 0.0); @@ -65,7 +65,7 @@ pub fn process_new_animations(rw_data: &mut LayoutTaskData, pipeline_id: Pipelin } // Add new running animations. - for new_running_animation in new_running_animations.into_iter() { + for new_running_animation in new_running_animations { match running_animations.entry(OpaqueNode(new_running_animation.node)) { Entry::Vacant(entry) => { entry.insert(vec![new_running_animation]); |