Fix cargo clippy issue
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c746313c04
commit
77d5b18f79
@ -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()
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user