nitpick
This commit is contained in:
parent
2326e4b452
commit
6188f9920f
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ pub struct NewGameRequest {
|
||||||
/// Game join request structure
|
/// Game join request structure
|
||||||
pub struct GameJoinRequest {
|
pub struct GameJoinRequest {
|
||||||
/// Game id
|
/// Game id
|
||||||
pub id: u8, // string?
|
pub id: u8, // increase later
|
||||||
/// Game password
|
/// Game password
|
||||||
pub password: String,
|
pub password: String,
|
||||||
/// Player info
|
/// Player info
|
||||||
|
@ -121,7 +121,7 @@ impl CAHGame {
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
pub fn new(request: NewGameRequest) -> Result<CAHGame> {
|
pub fn new(request: NewGameRequest) -> Result<Self> {
|
||||||
let mut game = CAHGame {
|
let mut game = CAHGame {
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue