use consume_iter() instead of iter().transform(|&x| x)