aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.rs b/src/server.rs
index f9eb121..cd367c4 100644
--- a/src/server.rs
+++ b/src/server.rs
@@ -132,7 +132,7 @@ impl ServerConn {
let handler_opt = {
let endpoints = self.netapp.endpoints.read().unwrap();
- endpoints.get(&path[..]).map(|e| e.clone_endpoint())
+ endpoints.get(&path).map(|e| e.clone_endpoint())
};
if let Some(handler) = handler_opt {