1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Clippy improvements

This commit is contained in:
NG (Graham)
2026-08-09 18:12:08 -04:00
parent 52dc0519fb
commit 3963a2b4de
12 changed files with 20 additions and 29 deletions

View File

@@ -1300,8 +1300,7 @@ impl BattleArenaLogic {
let connections = generic.users.read().await.values().map(|player_info| player_info.connection.clone()).collect();
let my_connection_latency = generic.users.read().await
.iter()
.filter(|(user_player_id, _)| **user_player_id == player_id)
.next()
.find(|(user_player_id, _)| **user_player_id == player_id)
.unwrap()
.1.connection.connection.latency();
tokio::task::spawn(super::respawn_player_after(