Inline a variable

This commit is contained in:
Ayaz Hafiz 2022-10-25 11:53:31 -05:00
parent f7724a7df3
commit b8b0d4f028
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

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