From 1a2fa429f3f3c810f7c520eb3c2a042630d20fe7 Mon Sep 17 00:00:00 2001 From: Font Vincent Date: Thu, 2 May 2024 17:09:35 +0200 Subject: [PATCH] fix: lint Signed-off-by: Font Vincent --- src/api/src/service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/src/service.rs b/src/api/src/service.rs index badd3b8..243c287 100644 --- a/src/api/src/service.rs +++ b/src/api/src/service.rs @@ -82,7 +82,7 @@ pub async fn shutdown(request: HttpRequest) -> impl Responder { } Err(_) => { let json_response: ShutdownJsonResponse = ShutdownJsonResponse { success: false }; - return HttpResponse::Ok().body(serde_json::to_string(&json_response).unwrap()); + HttpResponse::Ok().body(serde_json::to_string(&json_response).unwrap()) } } }