[Protocol] Replace some usage of remaining_length with the more appropiate is_remaining_empty

This commit is contained in:
CosminPerRam 2023-06-27 00:23:19 +03:00
parent 8fe521749a
commit dd80d6309f
4 changed files with 6 additions and 6 deletions

View file

@ -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()?,