From 385542e1cbfb3fa3db7901fb5c9154aadc86b49e Mon Sep 17 00:00:00 2001 From: Hamcha Date: Wed, 30 Sep 2020 17:19:10 +0200 Subject: [PATCH] Fix world --- src/game/world.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } }