mirror of
https://github.com/nushell/nushell.git
synced 2024-12-26 08:59:12 +01:00
Debugging
This commit is contained in:
parent
6e72386360
commit
fe4a51eef4
2
crates/nu-cli/src/env/environment.rs
vendored
2
crates/nu-cli/src/env/environment.rs
vendored
@ -133,7 +133,7 @@ impl Environment {
|
||||
tag: _,
|
||||
}) = &mut self.environment_vars
|
||||
{
|
||||
envs.remove_key(key);
|
||||
envs.entries.remove(key);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -159,10 +159,6 @@ impl Dictionary {
|
||||
self.entries.contains_key(key)
|
||||
}
|
||||
|
||||
pub fn remove_key(&mut self, key: &str) -> Option<Value> {
|
||||
self.entries.remove(key)
|
||||
}
|
||||
|
||||
/// Find the matching Value for a key, if possible
|
||||
pub fn get_data_by_key(&self, name: Spanned<&str>) -> Option<Value> {
|
||||
let result = self
|
||||
|
Loading…
Reference in New Issue
Block a user