From bc6d0e239633ee5f93ca5d742bfdf9620882b6bf Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Sun, 4 Dec 2016 15:38:39 -0800 Subject: [PATCH] rust clippy --- 2016/rust/src/day_02.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2016/rust/src/day_02.rs b/2016/rust/src/day_02.rs index 806f06f..8ab608a 100644 --- a/2016/rust/src/day_02.rs +++ b/2016/rust/src/day_02.rs @@ -74,7 +74,7 @@ impl Keypad { fn button(&self) -> char { let (x, y) = self.current; - self.arrangement[y][x].unwrap().clone() + self.arrangement[y][x].unwrap() } fn button_at(&self, x: usize, y: usize) -> Option {