Clippy & fmt gang

This commit is contained in:
Piotr Siuszko 2024-05-03 11:48:39 +02:00
parent 5d1354d92e
commit fe63d62f02
1 changed files with 1 additions and 2 deletions

View File

@ -163,7 +163,7 @@ pub fn update_rendered_state(
.get_mut(old_rendered_state) .get_mut(old_rendered_state)
.expect("World is not setup correctly"); .expect("World is not setup correctly");
old_rendered_state.data = new_state.cells.clone(); old_rendered_state.data.clone_from(&new_state.cells);
} }
} }
@ -216,4 +216,3 @@ fn main() -> std::io::Result<()> {
Ok(()) Ok(())
} }