diff options
Diffstat (limited to 'src/engine/command.rs')
-rw-r--r-- | src/engine/command.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/command.rs b/src/engine/command.rs index b34553f..76cfaee 100644 --- a/src/engine/command.rs +++ b/src/engine/command.rs @@ -20,7 +20,7 @@ impl fmt::Display for Command { } impl Command { - pub fn cant_build_yet(&self, energy: u16) -> bool { + pub fn cant_build_yet(self, energy: u16) -> bool { use self::Command::*; match self { @@ -52,7 +52,7 @@ impl BuildingType { if id <= 4 && id != 3 { Some(unsafe { mem::transmute(id) }) } else { None } } - pub fn cant_build_yet(&self, energy: u16) -> bool { + pub fn cant_build_yet(self, energy: u16) -> bool { use self::BuildingType::*; let required = match self { |