diff --git a/wgpu-core/src/lib.rs b/wgpu-core/src/lib.rs index 5bab0ee2a2..d76b02d9b1 100644 --- a/wgpu-core/src/lib.rs +++ b/wgpu-core/src/lib.rs @@ -54,6 +54,8 @@ // this doesn't make a difference. // Therefore, this is only really a concern for users targeting WebGL // (the only reason to use wgpu-core on the web in the first place) that have atomics enabled. +// +// NOTE: Keep this in sync with `wgpu`. #![cfg_attr(not(send_sync), allow(clippy::arc_with_non_send_sync))] pub mod binding_model; diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs index d45227dcf2..9361eb17d0 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/src/lib.rs @@ -22,7 +22,8 @@ rust_2018_idioms, unsafe_op_in_unsafe_fn )] -#![allow(clippy::arc_with_non_send_sync)] +// NOTE: Keep this in sync with `wgpu-core`. +#![cfg_attr(not(send_sync), allow(clippy::arc_with_non_send_sync))] // //