diff --git a/crates/nu-cli/src/env/environment.rs b/crates/nu-cli/src/env/environment.rs index 5b3c585bf8..b037b8bf42 100644 --- a/crates/nu-cli/src/env/environment.rs +++ b/crates/nu-cli/src/env/environment.rs @@ -133,7 +133,7 @@ impl Environment { tag: _, }) = &mut self.environment_vars { - envs.remove_key(key); + envs.entries.remove(key); } } diff --git a/crates/nu-protocol/src/value/dict.rs b/crates/nu-protocol/src/value/dict.rs index 70873f7983..b66307decf 100644 --- a/crates/nu-protocol/src/value/dict.rs +++ b/crates/nu-protocol/src/value/dict.rs @@ -159,10 +159,6 @@ impl Dictionary { self.entries.contains_key(key) } - pub fn remove_key(&mut self, key: &str) -> Option { - self.entries.remove(key) - } - /// Find the matching Value for a key, if possible pub fn get_data_by_key(&self, name: Spanned<&str>) -> Option { let result = self