summaryrefslogtreecommitdiff
path: root/src/engine/command.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-09-02 09:29:14 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-09-02 09:29:14 +0200
commitc405ac9bd5b6e34fca1d743949992b605a15d13e (patch)
treef8fb68233f7a2f00a5bc966396f6961fb3636a86 /src/engine/command.rs
parentdafb9cf03cc5e8ad0a2b2d1857bb635d237f47b0 (diff)
Clippy suggested improvements
Diffstat (limited to 'src/engine/command.rs')
-rw-r--r--src/engine/command.rs4
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 {