diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-05-10 23:01:22 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-05-10 23:01:22 +0200 |
commit | 4755702ef08d70961b5248cb706a592a406d0556 (patch) | |
tree | bfe8ff9e016338a58b6d0d9314d1b67b17cafea9 /src/engine/command.rs | |
parent | 11c791a59ac60241f253cdfb4e8765039d15edff (diff) |
Split to library. Reimplemented sample strategy in new state.
Diffstat (limited to 'src/engine/command.rs')
-rw-r--r-- | src/engine/command.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/engine/command.rs b/src/engine/command.rs index 603ee42..eab98c1 100644 --- a/src/engine/command.rs +++ b/src/engine/command.rs @@ -9,11 +9,9 @@ pub enum Command { impl fmt::Display for Command { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - use Command::*; - match self { - &Nothing => write!(f, ""), - &Build(p, b) => write!(f, "{},{},{}", p.x, p.y, b as u8), + &Command::Nothing => write!(f, ""), + &Command::Build(p, b) => write!(f, "{},{},{}", p.x, p.y, b as u8), } } } |