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
|
||||
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()
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue