diff --git a/generic/threadshare/src/runtime/executor/reactor/kqueue.rs b/generic/threadshare/src/runtime/executor/reactor/kqueue.rs index 1f108e49f..bb5b61340 100644 --- a/generic/threadshare/src/runtime/executor/reactor/kqueue.rs +++ b/generic/threadshare/src/runtime/executor/reactor/kqueue.rs @@ -35,7 +35,7 @@ impl Registration { /// /// The provided file descriptor must be valid and not be closed while this object is alive. pub(crate) unsafe fn new(f: BorrowedFd<'_>) -> Self { - Self::Fd(f.as_raw_fd()) + Self { raw: f.as_raw_fd() } } /// Registers the object into the reactor.