Remove superfluous 'format!' call

This commit is contained in:
Bruno BELANYI 2022-07-22 18:46:39 +02:00
parent dde9b133b4
commit 6e5b7c0b35

View file

@ -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)
}
}