summaryrefslogtreecommitdiff
path: root/src/geoparsers
diff options
context:
space:
mode:
authornamilsk <namilsk@namilsk.tech>2026-03-24 00:04:23 +0300
committernamilsk <namilsk@namilsk.tech>2026-03-24 00:04:23 +0300
commitb9399611816303da5a06dcfb30a6ab51f70ed4c1 (patch)
treef8fb46e5baf0b37313f7065c17fac58708683a96 /src/geoparsers
parent39fe1b820b9080ff672a719d523d6b8922866fdc (diff)
Fmt & Added CI
Diffstat (limited to 'src/geoparsers')
-rw-r--r--src/geoparsers/geoip2.rs4
-rw-r--r--src/geoparsers/mod.rs2
-rw-r--r--src/geoparsers/v2ray/parsing.rs2
-rw-r--r--src/geoparsers/v2ray/types.rs12
4 files changed, 5 insertions, 15 deletions
diff --git a/src/geoparsers/geoip2.rs b/src/geoparsers/geoip2.rs
index 9f2cc8b..1fd6ab1 100644
--- a/src/geoparsers/geoip2.rs
+++ b/src/geoparsers/geoip2.rs
@@ -3,8 +3,8 @@ use maxminddb::{Reader, geoip2};
use serde::Deserialize;
use std::net::IpAddr;
-// For now only MMDB because i cant found .proto schemes of
-// V2Ray GeoSite.dat :((
+// For now only MMDB because i cant found .proto schemes of
+// V2Ray GeoSite.dat :((
// TODO: V2Ray protobuf parsing && Test 4 ts
/// Interface enum for `dst_addr` info
diff --git a/src/geoparsers/mod.rs b/src/geoparsers/mod.rs
index 7828b9b..c3cfece 100644
--- a/src/geoparsers/mod.rs
+++ b/src/geoparsers/mod.rs
@@ -1,3 +1,3 @@
pub mod geoip2;
pub mod toml;
-pub mod v2ray; \ No newline at end of file
+pub mod v2ray;
diff --git a/src/geoparsers/v2ray/parsing.rs b/src/geoparsers/v2ray/parsing.rs
index 0f897bf..4f0bbba 100644
--- a/src/geoparsers/v2ray/parsing.rs
+++ b/src/geoparsers/v2ray/parsing.rs
@@ -1,6 +1,6 @@
use crate::geoparsers::v2ray::types::{Domain, GeoSite, GeoSiteList};
-use prost::bytes::Buf;
use prost::Message;
+use prost::bytes::Buf;
use std::fs;
pub struct GeoSiteService {
diff --git a/src/geoparsers/v2ray/types.rs b/src/geoparsers/v2ray/types.rs
index d7c0436..b82fbbf 100644
--- a/src/geoparsers/v2ray/types.rs
+++ b/src/geoparsers/v2ray/types.rs
@@ -33,17 +33,7 @@ pub mod domain {
}
}
/// Type of domain value.
- #[derive(
- Clone,
- Copy,
- Debug,
- PartialEq,
- Eq,
- Hash,
- PartialOrd,
- Ord,
- ::prost::Enumeration
- )]
+ #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Type {
/// The value is used as is.