mirror of
https://github.com/nushell/nushell.git
synced 2025-05-31 07:08:22 +02: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) {
|
if let Some(val) = std::env::var_os(k) {
|
||||||
self.overwritten_env_vars
|
self.overwritten_env_vars
|
||||||
.entry(wdir.to_path_buf())
|
.entry(wdir.to_path_buf())
|
||||||
.or_insert_with(|| IndexMap::new())
|
.or_insert(IndexMap::new())
|
||||||
.insert(k.clone(), val);
|
.insert(k.clone(), val);
|
||||||
} else {
|
} else {
|
||||||
//Otherwise, we just track that we added it here
|
//Otherwise, we just track that we added it here
|
||||||
self.added_env_vars
|
self.added_env_vars
|
||||||
.entry(wdir.to_path_buf())
|
.entry(wdir.to_path_buf())
|
||||||
.or_insert_with(|| vec![])
|
.or_insert(vec![])
|
||||||
.push(k.clone());
|
.push(k.clone());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user