Skip to content

Commit 67922b9

Browse files
committed
cargo fmt
1 parent 1aba40a commit 67922b9

File tree

7 files changed

+7
-8
lines changed

7 files changed

+7
-8
lines changed

src/proxy/idle_pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ use mio::{event::Event, net::TcpStream, Poll, Token};
44
use rustls::{ClientConfig, ClientSession};
55
use webpki::DNSName;
66

7-
use crate::resolver::EventedResolver;
87
use crate::{
98
config::Opts,
109
proxy::{next_index, CHANNEL_CNT, CHANNEL_IDLE, MIN_INDEX, RESOLVER},
10+
resolver::EventedResolver,
1111
sys,
1212
tls_conn::TlsConn,
1313
};

src/proxy/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ use rustls::ClientConfig;
1313
use socket2::{Domain, Protocol, SockAddr, Socket, Type};
1414
use webpki::DNSNameRef;
1515

16-
use crate::resolver::EventedResolver;
1716
use crate::{
1817
config::Opts,
1918
proxy::{
2019
idle_pool::IdlePool, tcp_server::TcpServer, udp_cache::UdpSvrCache, udp_server::UdpServer,
2120
},
21+
resolver::EventedResolver,
2222
sys,
2323
};
2424

src/proxy/tcp_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ use mio::{
1313
};
1414
use rustls::ClientSession;
1515

16-
use crate::resolver::EventedResolver;
1716
use crate::{
1817
config::Opts,
1918
proto::{TrojanRequest, CONNECT, MAX_BUFFER_SIZE, MAX_PACKET_SIZE},
2019
proxy::{idle_pool::IdlePool, next_index, CHANNEL_CLIENT, CHANNEL_CNT, CHANNEL_TCP, MIN_INDEX},
20+
resolver::EventedResolver,
2121
sys, tcp_util,
2222
tls_conn::{ConnStatus, TlsConn},
2323
};

src/proxy/udp_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use bytes::BytesMut;
44
use mio::{event::Event, net::UdpSocket, Poll, Token};
55
use rustls::ClientSession;
66

7-
use crate::resolver::EventedResolver;
87
use crate::{
98
config::Opts,
109
proto::{
@@ -15,6 +14,7 @@ use crate::{
1514
idle_pool::IdlePool, next_index, udp_cache::UdpSvrCache, CHANNEL_CNT, CHANNEL_UDP,
1615
MIN_INDEX,
1716
},
17+
resolver::EventedResolver,
1818
sys,
1919
tls_conn::{ConnStatus, TlsConn},
2020
};

src/server/connection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ use mio::{
77
};
88
use rustls::ServerSession;
99

10-
use crate::resolver::EventedResolver;
1110
use crate::{
1211
config::Opts,
1312
proto::{Sock5Address, TrojanRequest, CONNECT},
13+
resolver::EventedResolver,
1414
server::{
1515
tcp_backend::TcpBackend, tls_server::Backend, udp_backend::UdpBackend, CHANNEL_BACKEND,
1616
CHANNEL_CNT, CHANNEL_PROXY,

src/server/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ use rustls::{
1313

1414
pub use tls_server::TlsServer;
1515

16-
use crate::config::Opts;
17-
use crate::resolver::EventedResolver;
16+
use crate::{config::Opts, resolver::EventedResolver};
1817

1918
mod connection;
2019
mod tcp_backend;

src/server/tls_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ use std::{
77
use mio::{event::Event, net::TcpListener, Poll, Token};
88
use rustls::{ServerConfig, ServerSession};
99

10-
use crate::resolver::EventedResolver;
1110
use crate::{
1211
config::Opts,
12+
resolver::EventedResolver,
1313
server::{connection::Connection, CHANNEL_CNT, CHANNEL_PROXY, MAX_INDEX, MIN_INDEX},
1414
sys,
1515
tls_conn::{ConnStatus, TlsConn},

0 commit comments

Comments
 (0)