diff --git a/src/game/world.rs b/src/game/world.rs index 6941e61..f0f35d8 100644 --- a/src/game/world.rs +++ b/src/game/world.rs @@ -14,7 +14,7 @@ impl GameWorld { GameWorld { world } } - pub fn dispatcher(&self) -> specs::AsyncDispatcher<'static, &World> { - DispatcherBuilder::new().build_async(&self.world) + pub fn dispatcher(self) -> specs::AsyncDispatcher<'static, World> { + DispatcherBuilder::new().build_async(self.world) } }