From cb7b821434b71f04814cba99364b66b1b7fb9353 Mon Sep 17 00:00:00 2001 From: George Thomas Date: Tue, 13 Jan 2026 14:16:40 +0000 Subject: [PATCH] Move to avoid allocation --- rust/puzzles/day7.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rust/puzzles/day7.rs b/rust/puzzles/day7.rs index e501fac..a8a77a8 100644 --- a/rust/puzzles/day7.rs +++ b/rust/puzzles/day7.rs @@ -77,8 +77,7 @@ pub const PUZZLE: Puzzle<(usize, Vec>), 2> = Puzzle { vec![x] } .into_iter() - .map(|x1| (x1, n)) - .collect_vec() + .map(move |x1| (x1, n)) }) .into_group_map() .into_iter()