From 7b95465d47af0c1e74f1d2e4c76fdb7a9b6e960c Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Thu, 31 May 2018 21:00:22 +0200 Subject: Clippy suggested changes --- src/engine/command.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/engine/command.rs') 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), } } } -- cgit v1.2.3