This commit is contained in:
Sam Hedin 2020-06-15 15:48:14 +02:00
parent 4905e83a9d
commit 26ec9cf432

View File

@ -105,13 +105,13 @@ impl DirectorySpecificEnvironment {
if let Some(val) = std::env::var_os(k) {
self.overwritten_env_vars
.entry(wdir.to_path_buf())
.or_insert_with(|| IndexMap::new())
.or_insert(IndexMap::new())
.insert(k.clone(), val);
} else {
//Otherwise, we just track that we added it here
self.added_env_vars
.entry(wdir.to_path_buf())
.or_insert_with(|| vec![])
.or_insert(vec![])
.push(k.clone());
}
}