diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-05-31 21:00:22 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-05-31 21:00:22 +0200 |
commit | 7b95465d47af0c1e74f1d2e4c76fdb7a9b6e960c (patch) | |
tree | ed0cdaf376ac8b1e2edfade52931b0a3c620f031 /src/engine/command.rs | |
parent | 693d503953e2199cc9a64beda21e4f1d9db9a26e (diff) |
Clippy suggested changes
Diffstat (limited to 'src/engine/command.rs')
-rw-r--r-- | src/engine/command.rs | 6 |
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), } } } |