diff --git a/fish-rust/src/fd_monitor.rs b/fish-rust/src/fd_monitor.rs index 30ff14f17..90c00580a 100644 --- a/fish-rust/src/fd_monitor.rs +++ b/fish-rust/src/fd_monitor.rs @@ -18,6 +18,7 @@ mod fd_monitor_ffi { /// Reason for waking an item #[repr(u8)] #[cxx_name = "item_wake_reason_t"] + #[derive(PartialEq, Eq)] enum ItemWakeReason { /// The fd became readable (or was HUP'd) Readable, @@ -107,7 +108,7 @@ fn from(value: u64) -> Self { } type FfiCallback = extern "C" fn(*mut AutoCloseFd, u8, void_ptr); -type NativeCallback = Box; +pub type NativeCallback = Box; /// The callback type used by [`FdMonitorItem`]. It is passed a mutable reference to the /// `FdMonitorItem`'s [`FdMonitorItem::fd`] and [the reason](ItemWakeupReason) for the wakeup. The