From 3666601f5f54bdc0e007cfcca094635747a1d469 Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Fri, 20 Dec 2024 16:55:27 +0100 Subject: [PATCH] make clippy arc lint happy --- crates/egui-wgpu/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/egui-wgpu/src/lib.rs b/crates/egui-wgpu/src/lib.rs index a583e071f27..1358f2e65a7 100644 --- a/crates/egui-wgpu/src/lib.rs +++ b/crates/egui-wgpu/src/lib.rs @@ -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)) }