diff --git a/client/src/bin/bot/main.rs b/client/src/bin/bot/main.rs index 95ad2e2ad2..1e5ff3ae4c 100644 --- a/client/src/bin/bot/main.rs +++ b/client/src/bin/bot/main.rs @@ -207,7 +207,6 @@ impl BotClient { info!("login done"); } - pub fn handle_ingame_join(&mut self, prefix: &str) { let creds: Vec<_> = self .settings @@ -220,13 +219,11 @@ impl BotClient { let runtime = Arc::clone(&self.runtime); let server = self.settings.server.clone(); - let client = match self - .bot_clients - .get_mut(&cred.username) { + let client = match self.bot_clients.get_mut(&cred.username) { Some(c) => c, None => { tracing::trace!(?cred.username, "skip not logged in client"); - continue + continue; }, }; diff --git a/client/src/bin/bot/tui.rs b/client/src/bin/bot/tui.rs index 7f77e80754..7105f637b3 100644 --- a/client/src/bin/bot/tui.rs +++ b/client/src/bin/bot/tui.rs @@ -28,7 +28,7 @@ pub enum Cmd { }, InGame { prefix: String, - } + }, } pub struct Tui { diff --git a/common/sys/src/state.rs b/common/sys/src/state.rs index 09cc242e14..52c4bc356a 100644 --- a/common/sys/src/state.rs +++ b/common/sys/src/state.rs @@ -2,6 +2,8 @@ use crate::plugin::memory_manager::EcsWorld; #[cfg(feature = "plugins")] use crate::plugin::PluginMgr; +#[cfg(feature = "plugins")] +use common::uid::UidAllocator; use common::{ comp, event::{EventBus, LocalEvent, ServerEvent}, @@ -11,7 +13,6 @@ use common::{ terrain::{Block, TerrainChunk, TerrainGrid}, time::DayPeriod, trade::Trades, - uid::UidAllocator, vol::{ReadVol, WriteVol}, }; use common_base::span;