parse_args: remove duplicate test of dotenv variables

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2020-07-09 00:43:21 +02:00
parent 8564aaaf8d
commit f503fc9713

View File

@@ -142,13 +142,6 @@ SMR Unerledigt: 089 92529 60222")
env_prefix.push_str("_");
viperus.set_env_prefix(&env_prefix);
// respect dotenv environment (e.g for testing)
// -> overwrites the preset default values
println!(
"RUST_LOG={}",
dotenv::var("RUST_LOG").unwrap_or_else(|_| String::from("None"))
);
// enable caching and automatic update of environment values
viperus.cache(true);
viperus.automatic_env(true);