mirror of
https://github.com/lionsoul2014/ip2region.git
synced 2025-12-08 19:25:22 +00:00
Style: fmt binding rust code
This commit is contained in:
parent
e887c01615
commit
1f1ad5aaf6
@ -2,5 +2,5 @@ mod error;
|
|||||||
mod ip_value;
|
mod ip_value;
|
||||||
mod searcher;
|
mod searcher;
|
||||||
|
|
||||||
|
pub use ip_value::IpValueExt;
|
||||||
pub use searcher::{CachePolicy, Searcher};
|
pub use searcher::{CachePolicy, Searcher};
|
||||||
pub use ip_value::IpValueExt;
|
|
||||||
@ -6,13 +6,13 @@ use std::net::IpAddr;
|
|||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use std::sync::OnceLock;
|
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 tracing::{debug, trace, warn};
|
||||||
|
|
||||||
use crate::error::{Ip2RegionError, Result};
|
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};
|
use crate::ip_value::{CompareExt, IpValueExt};
|
||||||
|
|
||||||
pub struct Searcher {
|
pub struct Searcher {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user