summaryrefslogtreecommitdiff
path: root/src/sim/world.rs
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2026-08-16 11:00:02 -0700
committerKai Stevenson <kai@kaistevenson.com>2026-08-16 11:00:02 -0700
commit40e9d818195824749293dff3afcfdd5c1432adbe (patch)
tree94cf7696dbc3479082bde99135897b60d9a4c257 /src/sim/world.rs
parent643dd9bd632cab366f12dd8dfe3ee2499ae665a2 (diff)
lint
Diffstat (limited to 'src/sim/world.rs')
-rw-r--r--src/sim/world.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/sim/world.rs b/src/sim/world.rs
index 5993b10..d54906c 100644
--- a/src/sim/world.rs
+++ b/src/sim/world.rs
@@ -36,13 +36,7 @@ impl World {
}
// VERY EXPENSIVE
- pub fn set_cell_from_game_position(
- &mut self,
- x: i32,
- y: i32,
- cell: Cell,
- sleeping: bool,
- ) -> () {
+ pub fn set_cell_from_game_position(&mut self, x: i32, y: i32, cell: Cell, sleeping: bool) {
let ((cx, cy), (dx, dy)) = World::split_game_position(x, y);
if let Some(&idx) = self.chunk_position_to_chunk_idx.get(&(cx, cy)) {
self.chunks[idx].set_cell_at_local_position(dx, dy, cell);
@@ -52,7 +46,7 @@ impl World {
}
}
- pub fn insert(&mut self, x: i32, y: i32, chunk: Chunk) -> () {
+ pub fn insert(&mut self, x: i32, y: i32, chunk: Chunk) {
self.chunk_position_to_chunk_idx
.insert((x, y), self.chunks.len());
self.chunks.push(chunk);