diff --git a/binding/rust/ip2region/src/lib.rs b/binding/rust/ip2region/src/lib.rs index e51adb7..4e339a4 100644 --- a/binding/rust/ip2region/src/lib.rs +++ b/binding/rust/ip2region/src/lib.rs @@ -2,5 +2,5 @@ mod error; mod ip_value; mod searcher; +pub use ip_value::IpValueExt; pub use searcher::{CachePolicy, Searcher}; -pub use ip_value::IpValueExt; \ No newline at end of file diff --git a/binding/rust/ip2region/src/searcher.rs b/binding/rust/ip2region/src/searcher.rs index 91917ee..bef22e2 100644 --- a/binding/rust/ip2region/src/searcher.rs +++ b/binding/rust/ip2region/src/searcher.rs @@ -6,13 +6,13 @@ use std::net::IpAddr; use std::path::Path; use std::sync::OnceLock; +use maker::{ + HEADER_INFO_LENGTH, Header, IpVersion, VECTOR_INDEX_COLS, VECTOR_INDEX_LENGTH, + VECTOR_INDEX_SIZE, +}; use tracing::{debug, trace, warn}; use crate::error::{Ip2RegionError, Result}; -use maker::{ - HEADER_INFO_LENGTH, Header, IpVersion, VECTOR_INDEX_LENGTH, VECTOR_INDEX_COLS, - VECTOR_INDEX_SIZE -}; use crate::ip_value::{CompareExt, IpValueExt}; pub struct Searcher {