some changes?

This commit is contained in:
Aleksandr Trushkin
2024-05-01 16:51:07 +03:00
parent fb03a110ed
commit 41072b91d1
5 changed files with 305 additions and 185 deletions

View File

@ -32,7 +32,7 @@ fn main() {
}
fn get_value_from_env(key: &str) -> Option<String> {
env::var(key).map_or_else(|_| None, |v| Some(v))
env::var(key).map_or_else(|_| None, Some)
}
fn get_value_from_command<I: IntoIterator<Item = S>, S: AsRef<std::ffi::OsStr>>(