Skip to content

Commit 1f39a30

Browse files
authored
Merge pull request #1738 from freebroccolo/master
Fix warnings in raytrace-parallel example
2 parents 777828a + 0eba2ef commit 1f39a30

File tree

1 file changed

+4
-0
lines changed
  • examples/raytrace-parallel/src

1 file changed

+4
-0
lines changed

examples/raytrace-parallel/src/pool.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Silences warnings from the compiler about Work.func and child_entry_point
2+
// being unused when the target is not wasm.
3+
#![cfg_attr(not(target_arch = "wasm32"), allow(dead_code))]
4+
15
//! A small module that's intended to provide an example of creating a pool of
26
//! web workers which can be used to execute `rayon`-style work.
37

0 commit comments

Comments
 (0)