Live location tracking and playback for the game "manhunt"

Fix rust lints

bwc9876.dev 76afdd5a 6b5163b2

verified
+7 -11
+1 -1
manhunt-app/src/profiles.rs
··· 5 5 use manhunt_logic::PlayerProfile; 6 6 use std::io::BufReader; 7 7 use tauri::AppHandle; 8 - use tauri_plugin_dialog::{DialogExt, FileAccessMode, PickerMode}; 8 + use tauri_plugin_dialog::{DialogExt, PickerMode}; 9 9 use tauri_plugin_fs::{FsExt, OpenOptions}; 10 10 use tauri_plugin_store::StoreExt; 11 11
+4 -6
manhunt-signaling/src/state.rs
··· 223 223 }) 224 224 .unwrap_or_default(); 225 225 226 - if host { 227 - if let Some(mat) = matches.get_mut(&removed_peer.room).filter(|m| m.open_lobby) { 228 - // If we're host, disconnect everyone else 229 - mat.open_lobby = false; 230 - mat.cancel.cancel(); 231 - } 226 + if host && let Some(mat) = matches.get_mut(&removed_peer.room).filter(|m| m.open_lobby) { 227 + // If we're host, disconnect everyone else 228 + mat.open_lobby = false; 229 + mat.cancel.cancel(); 232 230 } 233 231 234 232 if other_peers.is_empty() {
+2 -4
manhunt-transport/src/matchbox.rs
··· 197 197 self.incoming.1.lock().await.close(); 198 198 drop(mrx); 199 199 drop(socket); 200 - if should_await { 201 - if let Err(why) = loop_fut.await { 202 - error!("Failed to await after disconnect: {why:?}"); 203 - } 200 + if should_await && let Err(why) = loop_fut.await { 201 + error!("Failed to await after disconnect: {why:?}"); 204 202 } 205 203 info!("Transport disconnected"); 206 204 }