aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/resolver.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/resolver.rs')
-rwxr-xr-xazalea-protocol/src/resolver.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/azalea-protocol/src/resolver.rs b/azalea-protocol/src/resolver.rs
index af59be72..43f15dce 100755
--- a/azalea-protocol/src/resolver.rs
+++ b/azalea-protocol/src/resolver.rs
@@ -1,14 +1,16 @@
//! Resolve IPs from hostnames.
-use crate::ServerAddress;
-use async_recursion::async_recursion;
use std::net::{IpAddr, SocketAddr};
+
+use async_recursion::async_recursion;
use thiserror::Error;
use trust_dns_resolver::{
config::{ResolverConfig, ResolverOpts},
Name, TokioAsyncResolver,
};
+use crate::ServerAddress;
+
#[derive(Error, Debug)]
pub enum ResolverError {
#[error("No SRV record found")]