mirror of
https://github.com/redstrate/Kawari.git
synced 2025-07-10 16:07:45 +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,8 +309,7 @@ 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,
|
||||||
|
@ -322,8 +321,6 @@ pub async fn server_main_loop(mut recv: Receiver<ToServer>) -> Result<(), std::i
|
||||||
to_remove.push(id);
|
to_remove.push(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => {}
|
|
||||||
}
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue