summaryrefslogtreecommitdiff
path: root/src/session.rs
diff options
context:
space:
mode:
authorJomar Milan <jomarm@jomarm.com>2026-06-20 10:46:02 -0700
committerJomar Milan <jomarm@jomarm.com>2026-06-20 10:46:02 -0700
commit617a0b8338e61b1a3625f0cc7fa4f543cb23d701 (patch)
tree10ac60ac155fe9d3c78dced1ccc739680d2ab059 /src/session.rs
parenta83eb7452b5d6bded88dca083b59df833f6dbd2f (diff)
Use separate function to handle play messages
Also remove Arc from the HashMap
Diffstat (limited to 'src/session.rs')
-rw-r--r--src/session.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/session.rs b/src/session.rs
index 096ae1a..f4c8fe3 100644
--- a/src/session.rs
+++ b/src/session.rs
@@ -1,6 +1,6 @@
-use std::array;
use crate::play::PlayUpdate;
use serde::{Deserialize, Serialize};
+use std::array;
use std::ops::Index;
use tokio::sync::broadcast;
@@ -153,7 +153,7 @@ impl TryFrom<&str> for PlayerColor {
"Pink" => Ok(Self::Pink),
"Grey" => Ok(Self::Grey),
"Black" => Ok(Self::Black),
- _ => Err(())
+ _ => Err(()),
}
}
}
@@ -175,7 +175,7 @@ impl TryFrom<usize> for PlayerColor {
9 => Ok(Self::Pink),
10 => Ok(Self::Grey),
11 => Ok(Self::Black),
- _ => Err(())
+ _ => Err(()),
}
}
}