Fix build on nightly
This commit is contained in:
parent
59e79d5259
commit
6b1b675d47
|
@ -87,7 +87,7 @@ impl ASNs {
|
|||
|
||||
pub fn lookup_by_ip(&self, ip: IpAddr) -> Option<&ASN> {
|
||||
let fasn = ASN::from_single_ip(ip);
|
||||
match self.asns.range(Unbounded, Included(&fasn)).next_back() {
|
||||
match self.asns.range((Unbounded, Included(&fasn))).next_back() {
|
||||
Some(found) if ip <= found.last_ip && found.number > 0 => Some(found),
|
||||
_ => None,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue