Skip to content

Commit 4889b47

Browse files
committed
Use expect instead of allow for create_surface_from_drm
1 parent 149ed93 commit 4889b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wgpu-core/src/instance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ impl Instance {
213213
/// This function is only available on Unix-like platforms (Linux, FreeBSD) and
214214
/// currently only works with the Vulkan backend.
215215
#[cfg(all(unix, not(target_vendor = "apple"), not(target_family = "wasm")))]
216-
#[cfg_attr(not(vulkan), allow(unused_variables))]
216+
#[cfg_attr(not(vulkan), expect(unused_variables))]
217217
pub unsafe fn create_surface_from_drm(
218218
&self,
219219
fd: i32,

0 commit comments

Comments
 (0)