mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 02:35:00 +02:00
@ -176,7 +176,8 @@ impl Scope {
|
||||
|
||||
pub fn add_env_var(&self, name: impl Into<String>, value: String) {
|
||||
if let Some(frame) = self.frames.lock().last_mut() {
|
||||
frame.env.insert(name.into(), value);
|
||||
let name = name.into();
|
||||
frame.env.insert(name, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user