Skip to content

Commit

Permalink
refactor: sync. wgpu-core's allow(clippy::arc_with_non_send_sync)
Browse files Browse the repository at this point in the history
… to `wgpu`
  • Loading branch information
ErichDonGubler committed Jan 28, 2025
1 parent 34cfee6 commit ac52aab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions wgpu-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))]

extern crate wgpu_hal as hal;
Expand Down
3 changes: 2 additions & 1 deletion wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
#![cfg_attr(not(any(wgpu_core, webgpu)), allow(unused))]

#[cfg(wgpu_core)]
Expand Down

0 comments on commit ac52aab

Please sign in to comment.