diff --git a/crates/ark/src/variables/variable.rs b/crates/ark/src/variables/variable.rs index f4e16d96d..4d7d9287e 100644 --- a/crates/ark/src/variables/variable.rs +++ b/crates/ark/src/variables/variable.rs @@ -820,8 +820,8 @@ impl PositronVariable { EnvironmentVariableNode::R6Node { object, name } => match name.as_str() { "" => { 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) },