aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-13 12:48:54 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-13 12:48:54 +0200
commit298e956a199711b65ce3820931ca943108b78225 (patch)
treea49a199a1049d18afaa60f47f46e04cb798aa4b2 /src
parent395f942fc745f5947005cad3a0e2ac15403fdbc9 (diff)
downloadnetapp-stream-body.tar.gz
netapp-stream-body.zip
undo needless changestream-body
Diffstat (limited to 'src')
-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 {