Skip to content

Commit 1a18388

Browse files
committed
chore: satisfy current Rust clippy
1 parent cff9e7b commit 1a18388

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server_do/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ impl MatchDO {
247247
let should_start_alarm = {
248248
let mut gs = self.game_state.borrow_mut();
249249
match msg {
250-
C2S::Join { code: _, .. } if gs.match_state == MatchState::Paused => {
250+
C2S::Join { .. } if gs.match_state == MatchState::Paused => {
251251
// A player is returning to a slot held open during the grace period.
252252
if let Some(player_id) = gs.reconnect_player(Box::new(ws.clone())) {
253253
if let Err(e) = ws.serialize_attachment(player_id) {
@@ -268,7 +268,7 @@ impl MatchDO {
268268
// The alarm loop is already running while paused.
269269
None
270270
}
271-
C2S::Join { code: _, .. } => {
271+
C2S::Join { .. } => {
272272
// We need to clone WS here because add_player takes ownership
273273
if let Some((player_id, was_empty)) = gs.add_player(Box::new(ws.clone())) {
274274
// Tag this socket with its player id so we can identify it on

0 commit comments

Comments
 (0)