@@ -6,7 +6,7 @@ const IP2PROXYBIN: &str = "data/IP2PROXY-IP-COUNTRY.BIN";
66
77#[ test]
88fn test_ipv4_lookup_in_ipv4bin ( ) -> Result < ( ) , error:: Error > {
9- let mut db = DB :: from_file ( IPV4BIN ) ?;
9+ let db = DB :: from_file ( IPV4BIN ) ?;
1010 let record = db. ip_lookup ( "43.224.159.155" . parse ( ) . unwrap ( ) ) ?;
1111 let record = if let Record :: LocationDb ( rec) = record {
1212 Some ( rec)
@@ -23,7 +23,7 @@ fn test_ipv4_lookup_in_ipv4bin() -> Result<(), error::Error> {
2323
2424#[ test]
2525fn test_ipv4_lookup_in_ipv6bin ( ) -> Result < ( ) , error:: Error > {
26- let mut db = DB :: from_file ( IPV6BIN ) ?;
26+ let db = DB :: from_file ( IPV6BIN ) ?;
2727 let record = db. ip_lookup ( "43.224.159.155" . parse ( ) . unwrap ( ) ) ?;
2828 let record = if let Record :: LocationDb ( rec) = record {
2929 Some ( rec)
@@ -40,7 +40,7 @@ fn test_ipv4_lookup_in_ipv6bin() -> Result<(), error::Error> {
4040
4141#[ test]
4242fn test_ipv6_lookup ( ) -> Result < ( ) , error:: Error > {
43- let mut db = DB :: from_file ( IPV6BIN ) ?;
43+ let db = DB :: from_file ( IPV6BIN ) ?;
4444 let record = db. ip_lookup ( "2a01:b600:8001::" . parse ( ) . unwrap ( ) ) ?;
4545 let record = if let Record :: LocationDb ( rec) = record {
4646 Some ( rec)
@@ -68,7 +68,7 @@ fn test_err_filenotfound_location() -> Result<(), error::Error> {
6868
6969#[ test]
7070fn test_ip_lookup_in_proxy_bin ( ) -> Result < ( ) , error:: Error > {
71- let mut db = DB :: from_file ( IP2PROXYBIN ) ?;
71+ let db = DB :: from_file ( IP2PROXYBIN ) ?;
7272 let record = db. ip_lookup ( "1.1.1.1" . parse ( ) . unwrap ( ) ) ?;
7373 let record = if let Record :: ProxyDb ( rec) = record {
7474 Some ( rec)
0 commit comments