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) } }