Skip to content

Commit

Permalink
Update values for target_arch for noise module
Browse files Browse the repository at this point in the history
  • Loading branch information
silvia-odwyer committed Oct 31, 2024
1 parent a2d522a commit 45e12e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crate/src/noise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::PhotonImage;
#[cfg(feature = "enable_wasm")]
use wasm_bindgen::prelude::*;

#[cfg(all(target_family = "wasm", not(target_os = "wasi")))]
#[cfg(all(target_family = "wasm64", not(target_os = "wasi")))]

Check warning on line 13 in crate/src/noise.rs

View workflow job for this annotation

GitHub Actions / Check

unexpected `cfg` condition value: `wasm64`

Check failure on line 13 in crate/src/noise.rs

View workflow job for this annotation

GitHub Actions / Clippy

unexpected `cfg` condition value: `wasm64`

Check warning on line 13 in crate/src/noise.rs

View workflow job for this annotation

GitHub Actions / Wasm32 check

unexpected `cfg` condition value: `wasm64`

Check warning on line 13 in crate/src/noise.rs

View workflow job for this annotation

GitHub Actions / Wasm32 check

unexpected `cfg` condition value: `wasm64`

Check warning on line 13 in crate/src/noise.rs

View workflow job for this annotation

GitHub Actions / Test Suite

unexpected `cfg` condition value: `wasm64`
use js_sys::Math::random;

#[cfg(not(all(target_arch = "wasm64", not(target_os = "wasi"))))]
Expand Down Expand Up @@ -39,7 +39,7 @@ use rand::Rng;
pub fn add_noise_rand(photon_image: &mut PhotonImage) {
let mut img = helpers::dyn_image_from_raw(photon_image);

#[cfg(not(all(target_arch = "wasm", not(target_os = "wasi"))))]
#[cfg(not(all(target_arch = "wasm64", not(target_os = "wasi"))))]
let mut rng = rand::thread_rng();

for (x, y) in ImageIterator::with_dimension(&img.dimensions()) {
Expand Down

0 comments on commit 45e12e8

Please sign in to comment.