From ed6a8172aecbc650f23188ae201d86085c93d856 Mon Sep 17 00:00:00 2001 From: Mauran Date: Wed, 1 May 2024 16:09:38 +0200 Subject: [PATCH] chore: lint ... Signed-off-by: Mauran --- src/cli/src/services.rs | 5 ++--- src/shared-models/src/lib.rs | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cli/src/services.rs b/src/cli/src/services.rs index a6894b6..2f33c5e 100644 --- a/src/cli/src/services.rs +++ b/src/cli/src/services.rs @@ -2,7 +2,7 @@ use crate::utils::ConfigFileHandler; use reqwest::Client; use serde::Deserialize; use shared_models::{BuildConfig, CloudletDtoRequest, Language, ServerConfig}; -use std::{error::Error, path::PathBuf}; +use std::{error::Error}; #[derive(Deserialize, Debug)] struct TomlConfig { @@ -14,14 +14,13 @@ struct TomlConfig { build: BuildConfig, } - pub struct CloudletClient {} impl CloudletClient { pub fn new_cloudlet_config(config: String) -> CloudletDtoRequest { let config: TomlConfig = toml::from_str(&config).expect("Error while parsing the config file"); - + let workload_name = config.workload_name; let code: String = ConfigFileHandler::read_file(&config.build.source_code_path) .expect("Error while reading the code file"); diff --git a/src/shared-models/src/lib.rs b/src/shared-models/src/lib.rs index f087310..73362a3 100644 --- a/src/shared-models/src/lib.rs +++ b/src/shared-models/src/lib.rs @@ -51,7 +51,6 @@ pub struct BuildConfig { pub release: bool, } - #[derive(Serialize, Deserialize, Debug)] pub struct AgentExecuteDtoRequest {}