From 3dff9f9bd2b1b8412d41dac03a8382096979ecc8 Mon Sep 17 00:00:00 2001 From: Bearmine Date: Mon, 16 Jun 2025 12:17:24 -0500 Subject: [PATCH] Optimize set creation --- day_07/src/equation/operator_set.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day_07/src/equation/operator_set.rs b/day_07/src/equation/operator_set.rs index 4e59fde..2735e2b 100644 --- a/day_07/src/equation/operator_set.rs +++ b/day_07/src/equation/operator_set.rs @@ -29,7 +29,7 @@ fn create_operator_set_recurse( for i in 0..operators.len() { if operators[i] { - continue; + break; } let mut new_operators = operators.clone(); new_operators[i] = true;