From c2af4b59822f550ab8f32e81b845546b10211d26 Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Wed, 22 Jul 2026 16:19:32 +0200 Subject: [PATCH] signals: Fix Windows Commit `41d776be4120df9f84633f1d54c1a1de27624c4e` accidentally broke `radicle-signals` by a simple confusion of `std::sync::mpsc::{,Sync}Sender`. --- crates/radicle-signals/src/windows.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/radicle-signals/src/windows.rs b/crates/radicle-signals/src/windows.rs index 03f093fa6..9694061d8 100644 --- a/crates/radicle-signals/src/windows.rs +++ b/crates/radicle-signals/src/windows.rs @@ -10,7 +10,7 @@ use ::windows::core::BOOL; use crate::{Signal, already_installed}; -static NOTIFY: OnceLock> = OnceLock::new(); +static NOTIFY: OnceLock> = OnceLock::new(); /// Callback function, called by the system when a control signal is to be received. /// See . @@ -38,7 +38,7 @@ unsafe extern "system" fn handler(ctrltype: u32) -> BOOL { /// Install global signal handlers, with notifications sent to the given /// `notify` channel. -pub fn install(notify: mpsc::Sender) -> io::Result<()> { +pub fn install(notify: mpsc::SyncSender) -> io::Result<()> { if let Err(_) = NOTIFY.set(notify) { return Err(already_installed()); }