diff --git a/Cargo.toml b/Cargo.toml index bdc2546..6b556b5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ members = [".", "codegen"] geoip2-codegen = { path = "codegen" } [dev-dependencies] -maxminddb = "0.24.0" +maxminddb = "0.27.2" [profile.release] lto = "fat" diff --git a/benches/geoip.rs b/benches/geoip.rs index 61903b2..3586859 100644 --- a/benches/geoip.rs +++ b/benches/geoip.rs @@ -32,7 +32,11 @@ mod tests { let reader = maxminddb::Reader::open_readfile("./testdata/GeoIP2-Country.mmdb").unwrap(); let ip = IpAddr::from_str("81.2.69.142").unwrap(); b.iter(|| { - reader.lookup::(ip).unwrap(); + reader + .lookup(ip) + .unwrap() + .decode::() + .unwrap(); }); } @@ -41,7 +45,11 @@ mod tests { let reader = maxminddb::Reader::open_readfile("./testdata/GeoIP2-City.mmdb").unwrap(); let ip = IpAddr::from_str("81.2.69.142").unwrap(); b.iter(|| { - reader.lookup::(ip).unwrap(); + reader + .lookup(ip) + .unwrap() + .decode::() + .unwrap(); }); } }