Fix build on nightly

This commit is contained in:
Adrien Gallouët 2017-02-06 17:14:03 +00:00
parent 59e79d5259
commit 6b1b675d47
1 changed files with 1 additions and 1 deletions

View File

@ -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,
}