Skip to content

Commit

Permalink
Merge pull request #1738 from freebroccolo/master
Browse files Browse the repository at this point in the history
Fix warnings in raytrace-parallel example
  • Loading branch information
alexcrichton committed Aug 28, 2019
2 parents 777828a + 0eba2ef commit 1f39a30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/raytrace-parallel/src/pool.rs
@@ -1,3 +1,7 @@
// Silences warnings from the compiler about Work.func and child_entry_point
// being unused when the target is not wasm.
#![cfg_attr(not(target_arch = "wasm32"), allow(dead_code))]

//! A small module that's intended to provide an example of creating a pool of
//! web workers which can be used to execute `rayon`-style work.

Expand Down

0 comments on commit 1f39a30

Please sign in to comment.