mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
clippy
This commit is contained in:
parent
31e963fad6
commit
729e16cad9
3 changed files with 4 additions and 7 deletions
|
@ -1161,11 +1161,9 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
|
|||
match scope.top_level_thunks.get(symbol) {
|
||||
Some((_layout, function_value)) => {
|
||||
// this is a 0-argument thunk, evaluate it!
|
||||
let call = env.builder.build_call(
|
||||
function_value.clone(),
|
||||
&[],
|
||||
"evaluate_top_level_thunk",
|
||||
);
|
||||
let call =
|
||||
env.builder
|
||||
.build_call(*function_value, &[], "evaluate_top_level_thunk");
|
||||
|
||||
call.try_as_basic_value().left().unwrap()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue