aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/examples/handshake_proxy.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-10-26 05:29:26 +0000
committermat <git@matdoes.dev>2024-10-26 05:29:26 +0000
commit6b0fe5bf638079d535e70c3c91e78fe35a5d2a2f (patch)
tree3b65d2984a0cffbe5acb3d44d7e3b8b145c32f95 /azalea-protocol/examples/handshake_proxy.rs
parentb762575db61cf775d603e11eb2bd27ae13bdc4e9 (diff)
downloadazalea-drasl-6b0fe5bf638079d535e70c3c91e78fe35a5d2a2f.tar.xz
group imports with rustfmt
Diffstat (limited to 'azalea-protocol/examples/handshake_proxy.rs')
-rw-r--r--azalea-protocol/examples/handshake_proxy.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/azalea-protocol/examples/handshake_proxy.rs b/azalea-protocol/examples/handshake_proxy.rs
index 442db386..8e675c58 100644
--- a/azalea-protocol/examples/handshake_proxy.rs
+++ b/azalea-protocol/examples/handshake_proxy.rs
@@ -1,6 +1,8 @@
//! A "simple" server that gets login information and proxies connections.
//! After login all connections are encrypted and Azalea cannot read them.
+use std::error::Error;
+
use azalea_protocol::{
connect::Connection,
packets::{
@@ -22,7 +24,6 @@ use azalea_protocol::{
};
use futures::FutureExt;
use once_cell::sync::Lazy;
-use std::error::Error;
use tokio::{
io::{self, AsyncWriteExt},
net::{TcpListener, TcpStream},