diff --git a/src/config.rs b/src/config.rs index 64eda408d..41991f522 100644 --- a/src/config.rs +++ b/src/config.rs @@ -131,10 +131,10 @@ fn get_config_paths(filename: &str) -> Vec { #[cfg(target_os = "windows")] fn get_global_config_path() -> Option { - std::env::var_os("PROGRAMDATA").map_or(None, |program_data| { + std::env::var_os("PROGRAMDATA").map(|program_data| { let mut path = PathBuf::from(program_data); path.push(r"rustic\config"); - Some(path) + path }) }