Skip to content

Commit f8b7b03

Browse files
verglaszStackDoubleFlow
authored andcommitted
fix: mark stub methods in mock world as unimplemented
1 parent 605508e commit f8b7b03

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

crates/world/src/lib.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,11 @@ mod test {
432432
);
433433
}
434434

435+
// mock World implementation for tests in this module,
436+
// we don't need most of the methods
435437
impl World for TestWorld {
436438
fn get_block_raw(&self, pos: BlockPos) -> u32 {
437-
todo!()
439+
unimplemented!()
438440
}
439441

440442
fn set_block_raw(&mut self, pos: BlockPos, block: u32) -> bool {
@@ -450,15 +452,15 @@ mod test {
450452
}
451453

452454
fn delete_block_entity(&mut self, pos: BlockPos) {
453-
todo!()
455+
unimplemented!()
454456
}
455457

456458
fn get_block_entity(&self, pos: BlockPos) -> Option<&BlockEntity> {
457-
todo!()
459+
unimplemented!()
458460
}
459461

460462
fn set_block_entity(&mut self, pos: BlockPos, block_entity: BlockEntity) {
461-
todo!()
463+
unimplemented!()
462464
}
463465

464466
fn get_chunk(&self, x: i32, z: i32) -> Option<&Chunk> {
@@ -470,11 +472,11 @@ mod test {
470472
}
471473

472474
fn schedule_tick(&mut self, pos: BlockPos, delay: u32, priority: TickPriority) {
473-
todo!()
475+
unimplemented!()
474476
}
475477

476478
fn pending_tick_at(&mut self, pos: BlockPos) -> bool {
477-
todo!()
479+
unimplemented!()
478480
}
479481
}
480482
}

0 commit comments

Comments
 (0)