Remove superfluous 'format!' call

This commit is contained in:
Bruno BELANYI 2022-07-22 18:46:39 +02:00
parent a04b1f3a42
commit 1a0aa5fddb

View file

@ -18,7 +18,7 @@ pub enum Square {
impl std::fmt::Display for Square { impl std::fmt::Display for Square {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
write!(f, "{}", format!("{:?}", self)) write!(f, "{:?}", self)
} }
} }