|
@ -56,7 +56,7 @@ macro_rules! make_config { |
|
|
impl ConfigBuilder { |
|
|
impl ConfigBuilder { |
|
|
#[allow(clippy::field_reassign_with_default)] |
|
|
#[allow(clippy::field_reassign_with_default)] |
|
|
fn from_env() -> Self { |
|
|
fn from_env() -> Self { |
|
|
match dotenv::from_path(".env") { |
|
|
match dotenv::from_path(get_env("ENV_FILE").unwrap_or_else(|| String::from(".env"))) { |
|
|
Ok(_) => (), |
|
|
Ok(_) => (), |
|
|
Err(e) => match e { |
|
|
Err(e) => match e { |
|
|
dotenv::Error::LineParse(msg, pos) => { |
|
|
dotenv::Error::LineParse(msg, pos) => { |
|
|