diff options
| author | mat <git@matdoes.dev> | 2025-04-19 23:35:13 +0700 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-04-19 23:35:13 +0700 |
| commit | b7bc08e3528ae0a5defe3612ef4ed6eef5216db6 (patch) | |
| tree | 4c057e8576d10c47ba54eb98a30b2df593b08022 | |
| parent | 6c1b144970e331321501ce67beeabd1985d7e3bd (diff) | |
| download | azalea-drasl-b7bc08e3528ae0a5defe3612ef4ed6eef5216db6.tar.xz | |
clippy
| -rw-r--r-- | azalea/src/swarm/mod.rs | 4 |
1 files 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::<Option<&S>>(); - 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(), |
