Skip to content

Commit

Permalink
chore: lint ...
Browse files Browse the repository at this point in the history
Signed-off-by: Mauran <thomas.mauran@etu.umontpellier.fr>
  • Loading branch information
thomas-mauran committed May 1, 2024
1 parent d01e581 commit ed6a817
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/cli/src/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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");
Expand Down
1 change: 0 additions & 1 deletion src/shared-models/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ pub struct BuildConfig {
pub release: bool,
}


#[derive(Serialize, Deserialize, Debug)]

pub struct AgentExecuteDtoRequest {}

0 comments on commit ed6a817

Please sign in to comment.