From 81675fe8749ccc07ffa47b4905fcd2687ecd5266 Mon Sep 17 00:00:00 2001 From: Mauran Date: Wed, 1 May 2024 16:22:32 +0200 Subject: [PATCH] chore: warnings seriously ? Signed-off-by: Mauran --- src/api/src/service.rs | 1 - src/cli/src/services.rs | 1 + src/shared-models/src/lib.rs | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/src/service.rs b/src/api/src/service.rs index 9047880..c35bc95 100644 --- a/src/api/src/service.rs +++ b/src/api/src/service.rs @@ -25,7 +25,6 @@ pub async fn run(req_body: web::Json) -> impl Responder { Language::PYTHON => 0, Language::NODE => 1, Language::RUST => 2, - _ => unreachable!("Invalid language"), }, log_level: req.log_level as i32, }; diff --git a/src/cli/src/services.rs b/src/cli/src/services.rs index f2dd525..2ec38ba 100644 --- a/src/cli/src/services.rs +++ b/src/cli/src/services.rs @@ -33,6 +33,7 @@ impl CloudletClient { log_level: shared_models::LogLevel::INFO, server: config.server, build: config.build, + action: config.action, } } diff --git a/src/shared-models/src/lib.rs b/src/shared-models/src/lib.rs index 73362a3..2b0b673 100644 --- a/src/shared-models/src/lib.rs +++ b/src/shared-models/src/lib.rs @@ -34,6 +34,7 @@ pub struct CloudletDtoRequest { pub language: Language, pub code: String, pub log_level: LogLevel, + pub action: String, pub server: ServerConfig, pub build: BuildConfig, }