clippy
This commit is contained in:
parent
032127b591
commit
7b71a331c6
|
@ -267,10 +267,10 @@ pub fn bind_common_in_range(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return Err(io::Error::new(
|
Err(io::Error::new(
|
||||||
io::ErrorKind::Other,
|
io::ErrorKind::Other,
|
||||||
format!("No available TCP/UDP ports in {:?}", range),
|
format!("No available TCP/UDP ports in {:?}", range),
|
||||||
));
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn bind_in_range(ip_addr: IpAddr, range: PortRange) -> io::Result<(u16, UdpSocket)> {
|
pub fn bind_in_range(ip_addr: IpAddr, range: PortRange) -> io::Result<(u16, UdpSocket)> {
|
||||||
|
@ -285,10 +285,10 @@ pub fn bind_in_range(ip_addr: IpAddr, range: PortRange) -> io::Result<(u16, UdpS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return Err(io::Error::new(
|
Err(io::Error::new(
|
||||||
io::ErrorKind::Other,
|
io::ErrorKind::Other,
|
||||||
format!("No available UDP ports in {:?}", range),
|
format!("No available UDP ports in {:?}", range),
|
||||||
));
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
// binds many sockets to the same port in a range
|
// binds many sockets to the same port in a range
|
||||||
|
|
Loading…
Reference in New Issue