Rust Day 5 - Remove redundant clone

This commit is contained in:
Tobias Berger 2022-12-05 13:14:50 +01:00
parent d2facf8cfa
commit 870d70001b
Signed by: toby
GPG key ID: 2D05EFAB764D6A88
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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,