Rust Day 5 - Remove redundant clone
This commit is contained in:
parent
d2facf8cfa
commit
870d70001b
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue