mirror of
https://github.com/speyejack/smo-multi-rs.git
synced 2025-10-05 23:52:48 +02:00
Remove needless borrow
This commit is contained in:
@@ -45,10 +45,10 @@ impl Coordinator {
|
||||
|
||||
async fn handle_command(&mut self, cmd: Command) -> Result<bool> {
|
||||
match cmd {
|
||||
Command::Server(sc) => match &sc {
|
||||
&ServerCommand::NewPlayer { .. } => self.add_client(sc).await?,
|
||||
&ServerCommand::DisconnectPlayer { guid } => self.disconnect_player(guid).await?,
|
||||
&ServerCommand::Shutdown => return Ok(false),
|
||||
Command::Server(sc) => match sc {
|
||||
ServerCommand::NewPlayer { .. } => self.add_client(sc).await?,
|
||||
ServerCommand::DisconnectPlayer { guid } => self.disconnect_player(guid).await?,
|
||||
ServerCommand::Shutdown => return Ok(false),
|
||||
},
|
||||
Command::Packet(packet) => {
|
||||
match &packet.data {
|
||||
|
Reference in New Issue
Block a user