mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Inline a variable
This commit is contained in:
parent
f7724a7df3
commit
b8b0d4f028
1 changed files with 1 additions and 2 deletions
|
@ -1621,8 +1621,7 @@ fn constrain_function_def(
|
|||
let ret_var = function_def.return_type;
|
||||
let closure_var = function_def.closure_type;
|
||||
|
||||
let ret_type = *ret_type.clone();
|
||||
let ret_type_index = constraints.push_type(ret_type.clone());
|
||||
let ret_type_index = constraints.push_type(*ret_type.clone());
|
||||
|
||||
vars.push(ret_var);
|
||||
vars.push(closure_var);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue