Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
ipetkov committed Mar 10, 2021
1 parent 06b0a49 commit 00a7a0f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tokio/src/signal/unix/driver.rs
Expand Up @@ -39,14 +39,6 @@ pub(crate) struct Handle {
#[derive(Debug)]
pub(super) struct Inner(());

const NOOP_WAKER_VTABLE: RawWakerVTable = RawWakerVTable::new(noop_clone, noop, noop, noop);

unsafe fn noop_clone(_data: *const ()) -> RawWaker {
RawWaker::new(ptr::null(), &NOOP_WAKER_VTABLE)
}

unsafe fn noop(_data: *const ()) {}

// ===== impl Driver =====

impl Driver {
Expand Down Expand Up @@ -136,6 +128,14 @@ impl Driver {
}
}

const NOOP_WAKER_VTABLE: RawWakerVTable = RawWakerVTable::new(noop_clone, noop, noop, noop);

unsafe fn noop_clone(_data: *const ()) -> RawWaker {
RawWaker::new(ptr::null(), &NOOP_WAKER_VTABLE)
}

unsafe fn noop(_data: *const ()) {}

// ===== impl Park for Driver =====

impl Park for Driver {
Expand Down

0 comments on commit 00a7a0f

Please sign in to comment.