aboutsummaryrefslogtreecommitdiff
path: root/minecraft-protocol/src/resolver.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-12-10 22:01:16 +0000
committermat <github@matdoes.dev>2021-12-10 22:01:16 +0000
commit5039f9668f3512240af22ac6bb49140012885509 (patch)
tree5300ef44f66345a82b0a568be20db67384707d27 /minecraft-protocol/src/resolver.rs
parent01a059c20cf3cf9330404d9e408a586500757fe6 (diff)
downloadazalea-drasl-5039f9668f3512240af22ac6bb49140012885509.tar.xz
clippy
Diffstat (limited to 'minecraft-protocol/src/resolver.rs')
-rw-r--r--minecraft-protocol/src/resolver.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/minecraft-protocol/src/resolver.rs b/minecraft-protocol/src/resolver.rs
index 5dc6df8b..b751e05f 100644
--- a/minecraft-protocol/src/resolver.rs
+++ b/minecraft-protocol/src/resolver.rs
@@ -14,7 +14,7 @@ pub async fn resolve_address(address: &ServerAddress) -> Result<ServerIpAddress,
// If the address.host is already in the format of an ip address, return it.
if let Ok(ip) = address.host.parse::<IpAddr>() {
return Ok(ServerIpAddress {
- ip: ip,
+ ip,
port: address.port,
});
}