From 0eba2efe45801b71f8873bc368c58a8ed8e894ff Mon Sep 17 00:00:00 2001 From: Darin Morrison Date: Tue, 27 Aug 2019 06:33:09 -0700 Subject: [PATCH] Fix warnings in raytrace-parallel example --- examples/raytrace-parallel/src/pool.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/raytrace-parallel/src/pool.rs b/examples/raytrace-parallel/src/pool.rs index b5cd4dd79..e0b30404b 100644 --- a/examples/raytrace-parallel/src/pool.rs +++ b/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.