Cargo clippy
This commit is contained in:
parent
2723724589
commit
f34e90bc5b
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user