mirror of
https://github.com/redstrate/Kawari.git
synced 2025-07-10 07:57:46 +00:00
Address "warning: you seem to be trying to use match
for destructuring a single pattern. Consider using if let
"
This commit is contained in:
parent
1fe3e3e81d
commit
b0282eb6bc
1 changed files with 9 additions and 12 deletions
|
@ -309,20 +309,17 @@ pub async fn server_main_loop(mut recv: Receiver<ToServer>) -> Result<(), std::i
|
||||||
|
|
||||||
// handle player-to-server actions
|
// handle player-to-server actions
|
||||||
if id == from_id {
|
if id == from_id {
|
||||||
match &trigger.trigger {
|
if let ClientTriggerCommand::TeleportQuery { aetheryte_id } = &trigger.trigger {
|
||||||
ClientTriggerCommand::TeleportQuery { aetheryte_id } => {
|
let msg = FromServer::ActorControlSelf(ActorControlSelf {
|
||||||
let msg = FromServer::ActorControlSelf(ActorControlSelf {
|
category: ActorControlCategory::TeleportStart {
|
||||||
category: ActorControlCategory::TeleportStart {
|
insufficient_gil: 0,
|
||||||
insufficient_gil: 0,
|
aetheryte_id: *aetheryte_id,
|
||||||
aetheryte_id: *aetheryte_id,
|
},
|
||||||
},
|
});
|
||||||
});
|
|
||||||
|
|
||||||
if handle.send(msg).is_err() {
|
if handle.send(msg).is_err() {
|
||||||
to_remove.push(id);
|
to_remove.push(id);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
_ => {}
|
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue