From 77d5b18f792a8ef5c9af14f38f5f18c6deeff214 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Mon, 1 May 2023 10:28:43 +0200 Subject: [PATCH] Fix cargo clippy issue --- rust/sea_battle_cli_player/src/client.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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() })