Skip to content

Commit

Permalink
don't add an extra noop step function to te wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
pufferfish101007 committed Aug 23, 2023
1 parent d02e3f7 commit 574781f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/targets/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,8 @@ impl From<IrProject> for WebWasmFile {
step_funcs.insert(None, noop_func);

for step in &project.steps {
// make sure to skip the 0th (noop) step because we've added the noop step function 3 lines above
if step.0 == "" { continue };

Check failure on line 991 in src/targets/wasm.rs

View workflow job for this annotation

GitHub Actions / Lint (clippy)

comparison to empty slice
step.compile_wasm(&mut step_funcs, &mut string_consts, &project.steps);
}

Expand Down

0 comments on commit 574781f

Please sign in to comment.