Fix clippy suggesting to do something weird

This commit is contained in:
pavel committed 2021-12-11 18:03:49 +01:00
1 parent f8c7323b47
commit 9e8b633447
1 file changed
+4 -3
+4 -3
View File
@@ -46,8 +46,9 @@ impl std::fmt::Display for board::Position {
impl std::fmt::Display for board::Board { impl std::fmt::Display for board::Board {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
Ok(for (position, piece) in self.iter() { for (position, piece) in self.iter() {
write!(f, "{}{}", piece, position)? write!(f, "{}{}", piece, position)?;
}) }
Ok(())
} }
} }