mirror of
https://git.mentality.rip/numas13/xash3d-master.git
synced 2025-01-22 04:44:31 +00:00
query: replace get(0) with first()
This commit is contained in:
parent
13a545be25
commit
31d918da8f
@ -570,7 +570,7 @@ fn list_servers(cli: &Cli) -> Result<(), Error> {
|
||||
}
|
||||
|
||||
fn execute(cli: Cli) -> Result<(), Error> {
|
||||
match cli.args.get(0).map(|s| s.as_str()).unwrap_or_default() {
|
||||
match cli.args.first().map(|s| s.as_str()).unwrap_or_default() {
|
||||
"all" | "" => query_server_info(&cli, &[])?,
|
||||
"info" => query_server_info(&cli, &cli.args[1..])?,
|
||||
"list" => list_servers(&cli)?,
|
||||
|
Loading…
x
Reference in New Issue
Block a user