From 4e0bdd3f093f345dcdf49e46a2bd7e8bfaf4dfff Mon Sep 17 00:00:00 2001 From: stale Date: Tue, 12 Jul 2022 23:34:58 -0300 Subject: rework old, dumb code --- src/livepos.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/livepos.rs') diff --git a/src/livepos.rs b/src/livepos.rs index b19eda6..08f3246 100644 --- a/src/livepos.rs +++ b/src/livepos.rs @@ -7,7 +7,7 @@ use tokio::time::{self, Duration}; use warp::ws::Message; pub enum ReqData { - Pos((usize,usize)), + Pos((u32,u32)), StateDump, Quit, } @@ -69,7 +69,7 @@ pub async fn livepos(players: Arc>, mut recv: tokio_mpsc::Unbo ); } -fn jsonenc_ids<'a, I: IntoIterator>(positions: &mut HashMap, ids: I) -> Result { +fn jsonenc_ids<'a, I: IntoIterator>(positions: &mut HashMap, ids: I) -> Result { let mut pairs = Vec::new(); for id in ids { pairs.push((id, positions[id])); -- cgit v1.2.3