mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Fix Rc vs clone
This commit is contained in:
parent
1556cf1fc9
commit
e96d3800ab
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ pub fn scoped_eval(expr: Expr, vars: &Scope) -> Evaluated {
|
|||
|
||||
// Resolve variable names
|
||||
Expr::Var(name) => match vars.get(&name) {
|
||||
Some(resolved) => *Rc::clone(resolved),
|
||||
Some(resolved) => (**resolved).clone(),
|
||||
None => EvalError(UnrecognizedVarName(name))
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue