From 1f1ad5aaf62489f35deba856160edc76539f4cbb Mon Sep 17 00:00:00 2001 From: gongzhengyang Date: Sun, 28 Sep 2025 15:51:54 +0800 Subject: [PATCH] Style: fmt binding rust code --- binding/rust/ip2region/src/lib.rs | 2 +- binding/rust/ip2region/src/searcher.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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 {