()
| 30 | } |
| 31 | const fn noop(_: *const ()) {} |
| 32 | fn noop_raw_waker() -> RawWaker { |
| 33 | let vtable = &RawWakerVTable::new(noop_clone, noop, noop, noop); |
| 34 | RawWaker::new(core::ptr::null(), vtable) |
| 35 | } |
| 36 | // SAFETY: The waker is a no-op waker that does nothing. It is safe to construct from the |
| 37 | // raw waker as the vtable functions are valid no-ops. |
| 38 | let waker = unsafe { Waker::from_raw(noop_raw_waker()) }; |
no outgoing calls
no test coverage detected