mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
clippy
This commit is contained in:
parent
c2fb626c17
commit
8ff843261a
1 changed files with 7 additions and 5 deletions
|
@ -406,12 +406,14 @@ impl<'a> ExecutionState<'a> {
|
|||
);
|
||||
|
||||
// Dereference the function pointer (look up the element index in the function table)
|
||||
let fn_index = module.element.lookup(element_index).expect(&format!(
|
||||
"Indirect function call failed. There is no function with element index {}",
|
||||
element_index
|
||||
)) as usize;
|
||||
let fn_index = module.element.lookup(element_index).unwrap_or_else(|| {
|
||||
panic!(
|
||||
"Indirect function call failed. There is no function with element index {}",
|
||||
element_index
|
||||
)
|
||||
});
|
||||
|
||||
self.do_call(Some(expected_signature), fn_index, module);
|
||||
self.do_call(Some(expected_signature), fn_index as usize, module);
|
||||
}
|
||||
DROP => {
|
||||
self.value_stack.pop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue