diff --git a/lib/workload/stateless/filemanager/Cargo.toml b/lib/workload/stateless/filemanager/Cargo.toml index 40e4c7565..fe3f40e58 100644 --- a/lib/workload/stateless/filemanager/Cargo.toml +++ b/lib/workload/stateless/filemanager/Cargo.toml @@ -12,3 +12,4 @@ members = [ license = "MIT" edition = "2021" authors = ["Marko Malenic ", "Roman Valls Guimera "] +rust-version = "1.74" diff --git a/lib/workload/stateless/filemanager/filemanager-http-lambda/Cargo.toml b/lib/workload/stateless/filemanager/filemanager-http-lambda/Cargo.toml index 1fd90bdd8..2a54a59c2 100644 --- a/lib/workload/stateless/filemanager/filemanager-http-lambda/Cargo.toml +++ b/lib/workload/stateless/filemanager/filemanager-http-lambda/Cargo.toml @@ -5,6 +5,7 @@ version = "0.1.0" license.workspace = true edition.workspace = true authors.workspace = true +rust-version.workspace = true [dependencies] tokio = { version = "1", features = ["macros"] } diff --git a/lib/workload/stateless/filemanager/filemanager-ingest-lambda/Cargo.toml b/lib/workload/stateless/filemanager/filemanager-ingest-lambda/Cargo.toml index 7d566f834..584ce1f14 100644 --- a/lib/workload/stateless/filemanager/filemanager-ingest-lambda/Cargo.toml +++ b/lib/workload/stateless/filemanager/filemanager-ingest-lambda/Cargo.toml @@ -5,6 +5,7 @@ version = "0.1.0" license.workspace = true edition.workspace = true authors.workspace = true +rust-version.workspace = true [dependencies] tokio = { version = "1", features = ["macros"] } diff --git a/lib/workload/stateless/filemanager/filemanager-migrate-lambda/Cargo.toml b/lib/workload/stateless/filemanager/filemanager-migrate-lambda/Cargo.toml index ab0ea50ea..8fb479560 100644 --- a/lib/workload/stateless/filemanager/filemanager-migrate-lambda/Cargo.toml +++ b/lib/workload/stateless/filemanager/filemanager-migrate-lambda/Cargo.toml @@ -4,6 +4,7 @@ version = "0.1.0" license.workspace = true edition.workspace = true authors.workspace = true +rust-version.workspace = true [dependencies] tokio = { version = "1", features = ["macros"] } diff --git a/lib/workload/stateless/filemanager/filemanager/Cargo.toml b/lib/workload/stateless/filemanager/filemanager/Cargo.toml index f23710466..543592167 100644 --- a/lib/workload/stateless/filemanager/filemanager/Cargo.toml +++ b/lib/workload/stateless/filemanager/filemanager/Cargo.toml @@ -5,6 +5,7 @@ version = "0.1.0" authors.workspace = true license.workspace = true edition.workspace = true +rust-version.workspace = true [features] diff --git a/lib/workload/stateless/filemanager/filemanager/src/env.rs b/lib/workload/stateless/filemanager/filemanager/src/env.rs index 240234627..3575a6a36 100644 --- a/lib/workload/stateless/filemanager/filemanager/src/env.rs +++ b/lib/workload/stateless/filemanager/filemanager/src/env.rs @@ -1,13 +1,10 @@ //! Handle environment variables. //! +use dotenvy::dotenv; use std::ffi::OsStr; -use std::{ - env, - fmt::{self}, -}; +use std::{env, fmt}; -use dotenvy; use tracing::{error, info}; use crate::error::Error::MissingEnvironmentVariable; @@ -33,7 +30,7 @@ pub fn load_env() -> AppEnv { info!("Running in {app_env} mode"); if app_env == AppEnv::Dev { - match dotenvy::dotenv() { + match dotenv() { Ok(path) => info!(".env read successfully from {}", path.display()), Err(e) => error!("Could not load .env file: {e}"), };