summaryrefslogtreecommitdiff
path: root/src/session.rs
diff options
context:
space:
mode:
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(()),
}
}
}