mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
fix: replace 2 instances of .get(0) with .first()
This commit is contained in:
parent
4d214ad5fb
commit
1080a94bd2
2 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ pub fn query_with_timeout(
|
|||
|
||||
let packets = client.get_server_packets()?;
|
||||
let data = packets
|
||||
.get(0)
|
||||
.first()
|
||||
.ok_or_else(|| PacketBad.context("First packet missing"))?;
|
||||
|
||||
let (mut server_vars, remaining_data) = data_to_map(data)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue