Fix cargo clippy issue
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pierre HUBERT 2023-05-01 10:28:43 +02:00
parent c746313c04
commit 77d5b18f79

View File

@ -62,7 +62,7 @@ impl Client {
&cli_args().local_server_address(), &cli_args().local_server_address(),
&format!( &format!(
"/play/bot?{}", "/play/bot?{}",
serde_urlencoded::to_string(&BotPlayQuery { serde_urlencoded::to_string(BotPlayQuery {
rules: rules.clone(), rules: rules.clone(),
player_name: "Human".to_string() player_name: "Human".to_string()
}) })
@ -78,7 +78,7 @@ impl Client {
&cli_args().remote_server, &cli_args().remote_server,
&format!( &format!(
"/play/random?{}", "/play/random?{}",
serde_urlencoded::to_string(&PlayRandomQuery { serde_urlencoded::to_string(PlayRandomQuery {
player_name: player_name.to_string() player_name: player_name.to_string()
}) })
.unwrap() .unwrap()
@ -93,7 +93,7 @@ impl Client {
&cli_args().remote_server, &cli_args().remote_server,
&format!( &format!(
"/play/create_invite?{}", "/play/create_invite?{}",
serde_urlencoded::to_string(&CreateInviteQuery { serde_urlencoded::to_string(CreateInviteQuery {
rules: rules.clone(), rules: rules.clone(),
player_name: player_name.to_string() player_name: player_name.to_string()
}) })
@ -109,7 +109,7 @@ impl Client {
&cli_args().remote_server, &cli_args().remote_server,
&format!( &format!(
"/play/accept_invite?{}", "/play/accept_invite?{}",
serde_urlencoded::to_string(&AcceptInviteQuery { serde_urlencoded::to_string(AcceptInviteQuery {
code, code,
player_name: player_name.to_string() player_name: player_name.to_string()
}) })