From ea545b395bcdc7b40986706a41ed4e858b61cee4 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 12 Oct 2020 18:38:58 +0200 Subject: [PATCH] server/REST: make handle_request private it's not used anywhere else, so do not suggest so Signed-off-by: Thomas Lamprecht --- src/server/rest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/rest.rs b/src/server/rest.rs index 912327f0..4291ee3c 100644 --- a/src/server/rest.rs +++ b/src/server/rest.rs @@ -512,7 +512,7 @@ fn check_auth( Ok(userid) } -pub async fn handle_request(api: Arc, req: Request) -> Result, Error> { +async fn handle_request(api: Arc, req: Request) -> Result, Error> { let (parts, body) = req.into_parts();