diff --git a/rust/src/day05/part_1.rs b/rust/src/day05/part_1.rs index d6cb27a..f129f88 100644 --- a/rust/src/day05/part_1.rs +++ b/rust/src/day05/part_1.rs @@ -1,5 +1,5 @@ pub(crate) fn part_1(input: crate::ChallengeInput) -> String { - let mut state = input.initial_state.clone(); + let mut state = input.initial_state; for crate::Instruction { origin, diff --git a/rust/src/day05/part_2.rs b/rust/src/day05/part_2.rs index 1b0ccec..24b1a71 100644 --- a/rust/src/day05/part_2.rs +++ b/rust/src/day05/part_2.rs @@ -1,5 +1,5 @@ pub(crate) fn part_2(input: crate::ChallengeInput) -> String { - let mut state = input.initial_state.clone(); + let mut state = input.initial_state; for crate::Instruction { origin,