Skip to content

Commit

Permalink
build(filemanager): add msrv
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalenic committed Mar 21, 2024
1 parent bca2417 commit 3791c44
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions lib/workload/stateless/filemanager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ members = [
license = "MIT"
edition = "2021"
authors = ["Marko Malenic <[email protected]>", "Roman Valls Guimera <[email protected]>"]
rust-version = "1.74"
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
1 change: 1 addition & 0 deletions lib/workload/stateless/filemanager/filemanager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ version = "0.1.0"
authors.workspace = true
license.workspace = true
edition.workspace = true
rust-version.workspace = true

[features]

Expand Down
9 changes: 3 additions & 6 deletions lib/workload/stateless/filemanager/filemanager/src/env.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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}"),
};
Expand Down

0 comments on commit 3791c44

Please sign in to comment.