Replace calls to the deprecated move_iter() with calls to into_iter()