Cargo clippy

This commit is contained in:
Pierre HUBERT 2022-09-15 17:39:44 +02:00
parent 2723724589
commit f34e90bc5b

View File

@ -1,3 +1,5 @@
use std::fmt::Write;
use crate::data::{BoatsLayout, MapCellContent};
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
@ -11,7 +13,7 @@ impl EndGameMap {
let mut s = String::new();
for row in &self.grid {
for col in row {
s.push_str(&format!("{} ", col.letter()));
write!(&mut s, "{} ", col.letter()).unwrap();
}
s.push('\n');
}