From b7bc08e3528ae0a5defe3612ef4ed6eef5216db6 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 19 Apr 2025 23:35:13 +0700 Subject: clippy --- azalea/src/swarm/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs index ad5ac815..6ecf4d32 100644 --- a/azalea/src/swarm/mod.rs +++ b/azalea/src/swarm/mod.rs @@ -486,7 +486,7 @@ where let ecs_mutex = first_bot.ecs.clone(); let mut ecs = ecs_mutex.lock(); let mut query = ecs.query::>(); - let Ok(Some(first_bot_state)) = query.get(&mut ecs, first_bot.entity) else { + let Ok(Some(first_bot_state)) = query.get(&ecs, first_bot.entity) else { error!( "the first bot ({} / {}) is missing the required state component! none of the client handler functions will be called.", first_bot.username(), @@ -506,7 +506,7 @@ where let state = match states.entry(bot.entity) { hash_map::Entry::Occupied(e) => e.into_mut(), hash_map::Entry::Vacant(e) => { - let Ok(Some(state)) = query.get(&mut ecs, bot.entity) else { + let Ok(Some(state)) = query.get(&ecs, bot.entity) else { error!( "one of our bots ({} / {}) is missing the required state component! its client handler function will not be called.", bot.username(), -- cgit v1.2.3