From 398bbbed1c331e7b0865ba98c65bef17cac161dc Mon Sep 17 00:00:00 2001 From: John Nunley Date: Sun, 10 Sep 2023 15:58:26 -0700 Subject: [PATCH] Fix Windows build error Signed-off-by: John Nunley --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 789f343..6cacc7b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -192,7 +192,7 @@ cfg_if::cfg_if! { fn register(&self, child: &std::process::Child) -> io::Result<()> { // Called when a child exits. unsafe extern "system" fn callback(_: *mut c_void, _: BOOLEAN) { - Reaper::get().pipe.get().unwrap().sender.try_send(()).ok(); + Reaper::get().pipe.sender.try_send(()).ok(); } // Register this child process to invoke `callback` on exit.