Skip to content

Commit

Permalink
make clippy arc lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Dec 20, 2024
1 parent a35fdac commit 3666601
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/egui-wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ async fn request_adapter(
);
}

// On wasm, depending on feature flags, wgpu objects may or may not implement sync.
// It doesn't make sense to switch to Rc for that special usecase, so simply disable the lint.
#[allow(clippy::arc_with_non_send_sync)]
Ok(Arc::new(adapter))
}

Expand Down

0 comments on commit 3666601

Please sign in to comment.