[rust] Get rid of unnecessary clone()s in Day 3

wip
Alpha Chen 9 years ago
parent 184b4bb646
commit 4a90bee104

@ -73,8 +73,8 @@ impl<'a> Iterator for Santa<'a> {
Some('<') => Point { x: -1, y: 0 }, Some('<') => Point { x: -1, y: 0 },
_ => return None, _ => return None,
}; };
self.location = self.location.clone() + offset; self.location = self.location + offset;
Some(self.location.clone()) Some(self.location)
} }
} }

Loading…
Cancel
Save