mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
[Protocol] Replace some usage of remaining_length with the more appropiate is_remaining_empty
This commit is contained in:
parent
8fe521749a
commit
dd80d6309f
4 changed files with 6 additions and 6 deletions
|
|
@ -70,7 +70,7 @@ impl ValveMasterServer {
|
|||
}
|
||||
|
||||
let mut ips: Vec<(IpAddr, u16)> = Vec::new();
|
||||
while buf.remaining_length() > 0 {
|
||||
while !buf.is_remaining_empty() {
|
||||
let ip = IpAddr::V4(Ipv4Addr::new(
|
||||
buf.get_u8()?,
|
||||
buf.get_u8()?,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue