From b6d24ebb42fa7b4b13773decaeae7314a55aaf21 Mon Sep 17 00:00:00 2001 From: Font Vincent Date: Thu, 2 May 2024 16:57:48 +0200 Subject: [PATCH] fix: lint --- 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 398828f..864f955 100644 --- a/src/api/src/service.rs +++ b/src/api/src/service.rs @@ -78,7 +78,7 @@ pub async fn shutdown(request: HttpRequest) -> impl Responder { match response_result { Ok(response) => { let json_response: ShutdownJsonResponse = response.into(); - return HttpResponse::Ok().body(serde_json::to_string(&json_response).unwrap()); + HttpResponse::Ok().body(serde_json::to_string(&json_response).unwrap()) } Err(_) => { let json_response: ShutdownJsonResponse = ShutdownJsonResponse {