Skip to content

Commit

Permalink
chore: fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
skanehira committed Jul 10, 2023
1 parent 2f61ac8 commit 8c274db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/execution/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl Store {
// table will be shared by all module instance
// so if element is exists in the same index, overwrite the table
let update_funcs_in_table = |entries: &mut Vec<Option<FuncInst>>| -> Result<()> {
if let Some(ref elems) = module.element_section {
if let Some(elems) = module.element_section.as_ref() {
for elem in elems {
let offset = eval(&globals, elem.offset.clone())?;
if entries.len() <= offset {
Expand Down

0 comments on commit 8c274db

Please sign in to comment.