This commit is contained in:
Adam 2024-04-24 02:23:47 -04:00
parent 2326e4b452
commit 6188f9920f

View file

@ -98,7 +98,7 @@ pub struct NewGameRequest {
/// Game join request structure
pub struct GameJoinRequest {
/// Game id
pub id: u8, // string?
pub id: u8, // increase later
/// Game password
pub password: String,
/// Player info
@ -121,7 +121,7 @@ impl CAHGame {
Ok(())
}
pub fn new(request: NewGameRequest) -> Result<CAHGame> {
pub fn new(request: NewGameRequest) -> Result<Self> {
let mut game = CAHGame {
..Default::default()
};