[rust] Get rid of unnecessary clone()s in Day 3
change
commit 4a90bee104c8a1b27be265e34ab9fc97145c51fb
author Alpha Chen <alpha.chen@gmail.com>
date
parent 184b4bb6
diff --git a/rust/src/day_03.rs b/rust/src/day_03.rs
index 8dbe942..c64e2ec 100644
--- a/rust/src/day_03.rs
+++ b/rust/src/day_03.rs
@@ -73,8 +73,8 @@ impl<'a> Iterator for Santa<'a> {
             Some('<') => Point { x: -1, y: 0 },
             _ => return None,
         };
-        self.location = self.location.clone() + offset;
-        Some(self.location.clone())
+        self.location = self.location + offset;
+        Some(self.location)
     }
 }