mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
refactor: gate allow(clippy::drop_ref) behind WASM build
This commit is contained in:
1 parent
2492956014
commit
fd2ecdd360
1 file changed
+1
-1
@@ -606,7 +606,7 @@ impl super::Adapter {
|
||||
// Drop the GL guard so we can move the context into AdapterShared
|
||||
// ( on Wasm the gl handle is just a ref so we tell clippy to allow
|
||||
// dropping the ref )
|
||||
#[allow(clippy::drop_ref)]
|
||||
#[cfg_attr(target_arch = "wasm32", allow(clippy::drop_ref))]
|
||||
drop(gl);
|
||||
|
||||
Some(crate::ExposedAdapter {
|
||||
|
||||
Reference in new issue
Block a user