summaryrefslogtreecommitdiff
path: root/src/geoparsers/v2ray
diff options
context:
space:
mode:
Diffstat (limited to 'src/geoparsers/v2ray')
-rw-r--r--src/geoparsers/v2ray/parsing.rs2
-rw-r--r--src/geoparsers/v2ray/types.rs12
2 files changed, 2 insertions, 12 deletions
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.