Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantk232 authored and amitu committed Oct 27, 2023
1 parent 03fc09f commit 4e6e9a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastn/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ pub fn version() -> &'static str {
}
}

fn set_env_vars() -> () {
fn set_env_vars() {
let checked_in = {
if let Ok(status) = std::process::Command::new("git")
.arg("ls-files")
Expand Down Expand Up @@ -580,7 +580,7 @@ FASTN_DANGER_ACCEPT_CHECKED_IN_ENV set"
std::process::exit(1);
}

if let Ok(_) = dotenvy::dotenv() {
if dotenvy::dotenv().is_ok() {
println!("INFO: loaded environment variables from .env file.");
}
}

0 comments on commit 4e6e9a7

Please sign in to comment.