mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 23:44:38 +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 ecs_mutex = first_bot.ecs.clone();
|
||||||
let mut ecs = ecs_mutex.lock();
|
let mut ecs = ecs_mutex.lock();
|
||||||
let mut query = ecs.query::<Option<&S>>();
|
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!(
|
error!(
|
||||||
"the first bot ({} / {}) is missing the required state component! none of the client handler functions will be called.",
|
"the first bot ({} / {}) is missing the required state component! none of the client handler functions will be called.",
|
||||||
first_bot.username(),
|
first_bot.username(),
|
||||||
|
@ -506,7 +506,7 @@ where
|
||||||
let state = match states.entry(bot.entity) {
|
let state = match states.entry(bot.entity) {
|
||||||
hash_map::Entry::Occupied(e) => e.into_mut(),
|
hash_map::Entry::Occupied(e) => e.into_mut(),
|
||||||
hash_map::Entry::Vacant(e) => {
|
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!(
|
error!(
|
||||||
"one of our bots ({} / {}) is missing the required state component! its client handler function will not be called.",
|
"one of our bots ({} / {}) is missing the required state component! its client handler function will not be called.",
|
||||||
bot.username(),
|
bot.username(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue