diff --git a/rust/sea_battle_cli_player/src/client.rs b/rust/sea_battle_cli_player/src/client.rs index b9d94f4..89e202e 100644 --- a/rust/sea_battle_cli_player/src/client.rs +++ b/rust/sea_battle_cli_player/src/client.rs @@ -62,7 +62,7 @@ impl Client { &cli_args().local_server_address(), &format!( "/play/bot?{}", - serde_urlencoded::to_string(&BotPlayQuery { + serde_urlencoded::to_string(BotPlayQuery { rules: rules.clone(), player_name: "Human".to_string() }) @@ -78,7 +78,7 @@ impl Client { &cli_args().remote_server, &format!( "/play/random?{}", - serde_urlencoded::to_string(&PlayRandomQuery { + serde_urlencoded::to_string(PlayRandomQuery { player_name: player_name.to_string() }) .unwrap() @@ -93,7 +93,7 @@ impl Client { &cli_args().remote_server, &format!( "/play/create_invite?{}", - serde_urlencoded::to_string(&CreateInviteQuery { + serde_urlencoded::to_string(CreateInviteQuery { rules: rules.clone(), player_name: player_name.to_string() }) @@ -109,7 +109,7 @@ impl Client { &cli_args().remote_server, &format!( "/play/accept_invite?{}", - serde_urlencoded::to_string(&AcceptInviteQuery { + serde_urlencoded::to_string(AcceptInviteQuery { code, player_name: player_name.to_string() })