From 1a0aa5fddb77a24b1ace7d0bf796b1ade6f9630a Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 22 Jul 2022 18:46:39 +0200 Subject: [PATCH] Remove superfluous 'format!' call --- src/board/square.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/board/square.rs b/src/board/square.rs index b5a033c..0d58c2b 100644 --- a/src/board/square.rs +++ b/src/board/square.rs @@ -18,7 +18,7 @@ pub enum Square { impl std::fmt::Display for Square { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { - write!(f, "{}", format!("{:?}", self)) + write!(f, "{:?}", self) } }