fix prompts on startup (#3056)

* fix prompts on startup

* Try again
This commit is contained in:
Jonathan Turner
2021-02-15 20:14:16 +13:00
committed by GitHub
parent c3d2c61729
commit b202951c1d
6 changed files with 109 additions and 214 deletions

View File

@ -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);
}
}