aboutsummaryrefslogtreecommitdiff
path: root/2022/19/a.rs
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-07-06 00:18:18 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-07-06 00:18:18 +0200
commit950d82569ddf137f1674095bfbe6bfff8fce663f (patch)
treecfa15729352f078e35c3c6c5afbcc5f3d220842f /2022/19/a.rs
parent2b5e220841acc8aa48e403e8faf4a29b161bca8a (diff)
downloadaoc-950d82569ddf137f1674095bfbe6bfff8fce663f.tar.gz
aoc-950d82569ddf137f1674095bfbe6bfff8fce663f.zip
Minor improvement using ref instead of copy
Diffstat (limited to '2022/19/a.rs')
-rw-r--r--2022/19/a.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/2022/19/a.rs b/2022/19/a.rs
index 57e83e6..898debd 100644
--- a/2022/19/a.rs
+++ b/2022/19/a.rs
@@ -8,7 +8,7 @@ fn main() {
8 let mut i = 1; 8 let mut i = 1;
9 let mut sum = 0; 9 let mut sum = 0;
10 for bp in read_blueprints_from_stdin() { 10 for bp in read_blueprints_from_stdin() {
11 let mg = most_geodes(&bp, Status::new(), MINUTES, &mut mem); 11 let mg = most_geodes(&bp, &Status::new(), MINUTES, &mut mem);
12 println!("{i}: {mg}"); 12 println!("{i}: {mg}");
13 sum += i * mg; 13 sum += i * mg;
14 mem.clear(); 14 mem.clear();

Generated with cgit - Back to sebastiano.tronto.net