diff options
Diffstat (limited to 'src/modules/hosts.rs')
-rw-r--r-- | src/modules/hosts.rs | 2 |
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 |