mirror of
https://github.com/nushell/nushell.git
synced 2025-01-23 14:50:09 +01:00
Clippy
This commit is contained in:
parent
4905e83a9d
commit
26ec9cf432
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user