summaryrefslogtreecommitdiff
path: root/src/modules/hosts.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-10 17:21:53 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-10 17:21:53 +0200
commitc88d6e280a669eca44b8331b8731cf5fc933a957 (patch)
treef089a5402808a281a13be7b58593aaa829c8e109 /src/modules/hosts.rs
parent6d0bac25aa3f118de34a9f05d939f60d80f550a5 (diff)
downloadgnix-c88d6e280a669eca44b8331b8731cf5fc933a957.tar
gnix-c88d6e280a669eca44b8331b8731cf5fc933a957.tar.bz2
gnix-c88d6e280a669eca44b8331b8731cf5fc933a957.tar.zst
clippy
Diffstat (limited to 'src/modules/hosts.rs')
-rw-r--r--src/modules/hosts.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/hosts.rs b/src/modules/hosts.rs
index 286d478..7ad7481 100644
--- a/src/modules/hosts.rs
+++ b/src/modules/hosts.rs
@@ -32,7 +32,7 @@ impl Node for Hosts {
.and_then(|e| e.to_str().ok())
.ok_or(ServiceError::NoHost)?;
- let host = remove_port(&host);
+ let host = remove_port(host);
let node = self.0.get(host).ok_or(ServiceError::UnknownHost)?;
node.handle(context, request).await