Skip to content

Commit

Permalink
USe new() instead of view()
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel committed Oct 22, 2024
1 parent c7ae20e commit 24172d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ark/src/variables/variable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -820,8 +820,8 @@ impl PositronVariable {
EnvironmentVariableNode::R6Node { object, name } => match name.as_str() {
"<private>" => {
let env = Environment::new(object);
let enclos = Environment::new(RObject::view(env.find(".__enclos_env__")?));
let private = RObject::view(enclos.find("private")?);
let enclos = Environment::new(RObject::new(env.find(".__enclos_env__")?));
let private = RObject::new(enclos.find("private")?);

Self::inspect_environment(private)
},
Expand Down

0 comments on commit 24172d0

Please sign in to comment.