From f1244b4b569cfde4ac753e1da6a9d51916866e81 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Fri, 21 May 2021 22:26:37 +0200 Subject: [PATCH] Fix cargo fmt error? --- src/http/handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/handler.rs b/src/http/handler.rs index bfd88d0..fa2cc3e 100644 --- a/src/http/handler.rs +++ b/src/http/handler.rs @@ -60,7 +60,7 @@ fn request_handler(client: &mut super::HttpStream) { ["entity", entity] => { res.status(501); error = Some(Error::new(Kind::NotImplementedError, Class::ServerError)) - } + }, [endpoint] => match req.method { Method::POST => return endpoint_handler(client, &req, res, endpoint), _ => {