summaryrefslogtreecommitdiff
path: root/src/engine/command.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-05-31 21:00:22 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-05-31 21:00:22 +0200
commit7b95465d47af0c1e74f1d2e4c76fdb7a9b6e960c (patch)
treeed0cdaf376ac8b1e2edfade52931b0a3c620f031 /src/engine/command.rs
parent693d503953e2199cc9a64beda21e4f1d9db9a26e (diff)
Clippy suggested changes
Diffstat (limited to 'src/engine/command.rs')
-rw-r--r--src/engine/command.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/command.rs b/src/engine/command.rs
index c2edb81..17dbd5a 100644
--- a/src/engine/command.rs
+++ b/src/engine/command.rs
@@ -9,9 +9,9 @@ pub enum Command {
impl fmt::Display for Command {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- match self {
- &Command::Nothing => write!(f, ""),
- &Command::Build(p, b) => write!(f, "{},{},{}", p.x, p.y, b as u8),
+ match *self {
+ Command::Nothing => write!(f, ""),
+ Command::Build(p, b) => write!(f, "{},{},{}", p.x, p.y, b as u8),
}
}
}