summaryrefslogtreecommitdiff
path: root/src/controls.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/controls.rs')
-rw-r--r--src/controls.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls.rs b/src/controls.rs
index 7ed8374..8a10824 100644
--- a/src/controls.rs
+++ b/src/controls.rs
@@ -29,7 +29,7 @@ impl Direction {
}
}
- pub fn to_position(&self) -> Pos {
+ pub fn to_position(self) -> Pos {
match self {
Direction::North => Pos::new(0, -1),
Direction::South => Pos::new(0, 1),