Skip to content

Commit dd2ab18

Browse files
committed
Gate waker code to noop feature
1 parent 9c5e501 commit dd2ab18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wgpu/src/api/device.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ impl fmt::Display for Error {
698698

699699
// Copied from [`futures::task::noop_waker`].
700700
// Needed until MSRV is 1.85 with `task::Waker::noop()` available
701+
#[cfg(feature = "noop")]
701702
mod waker {
702703
use core::ptr::null;
703704
use core::task::{RawWaker, RawWakerVTable, Waker};

0 commit comments

Comments
 (0)