]> git.proxmox.com Git - proxmox-backup.git/commitdiff
server/REST: make handle_request private
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Oct 2020 16:38:58 +0000 (18:38 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Oct 2020 16:39:00 +0000 (18:39 +0200)
it's not used anywhere else, so do not suggest so

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/server/rest.rs

index 912327f04b36f436cf71bcd3259f127c52f8d275..4291ee3c45754806fd398cfb5223bbdb7d3c1134 100644 (file)
@@ -512,7 +512,7 @@ fn check_auth(
     Ok(userid)
 }
 
-pub async fn handle_request(api: Arc<ApiConfig>, req: Request<Body>) -> Result<Response<Body>, Error> {
+async fn handle_request(api: Arc<ApiConfig>, req: Request<Body>) -> Result<Response<Body>, Error> {
 
     let (parts, body) = req.into_parts();