diff options
Diffstat (limited to 'server/src/entity/bot.rs')
-rw-r--r-- | server/src/entity/bot.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/entity/bot.rs b/server/src/entity/bot.rs index 6f39fab2..cd505c4f 100644 --- a/server/src/entity/bot.rs +++ b/server/src/entity/bot.rs @@ -21,6 +21,7 @@ use hurrycurry_bot::{BotAlgo, DynBotAlgo}; use hurrycurry_protocol::{PacketS, PlayerID}; use log::info; use rand::random; +use std::any::Any; pub type DynBotDriver = BotDriver<DynBotAlgo>; @@ -43,7 +44,7 @@ impl<T: BotAlgo> BotDriver<T> { } } } -impl<T: BotAlgo> Entity for BotDriver<T> { +impl<T: BotAlgo + Any> Entity for BotDriver<T> { fn finished(&self) -> bool { self.left } |