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 {
|
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 {
|
for crate::Instruction {
|
||||||
origin,
|
origin,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
pub(crate) fn part_2(input: crate::ChallengeInput) -> String {
|
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 {
|
for crate::Instruction {
|
||||||
origin,
|
origin,
|
||||||
|
|
Loading…
Reference in a new issue