mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
clippy
This commit is contained in:
parent
6c1b144970
commit
b7bc08e352
1 changed files with 2 additions and 2 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Reference in a new issue