diff --git a/.common/rust/src/main.rs b/.common/rust/src/main.rs index 3a21fdf..062eb44 100644 --- a/.common/rust/src/main.rs +++ b/.common/rust/src/main.rs @@ -288,13 +288,7 @@ mod input { } pub fn next_vec(&mut self, n: usize) -> Vec { - let mut arr = vec![]; - - for _ in 0..n { - arr.push(self.next::()); - } - - arr + (0..n).map(|_| self.next()).collect() } } }