From 422be212d60fe053ed9bcb14aad6d1059b3a2906 Mon Sep 17 00:00:00 2001 From: Thomas Karpiniec Date: Wed, 26 Jun 2024 20:52:06 +1000 Subject: [PATCH 1/1] Make WatchHandle Send on Apple --- src/watch_mac.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/watch_mac.rs b/src/watch_mac.rs index 42e7217..c44169c 100644 --- a/src/watch_mac.rs +++ b/src/watch_mac.rs @@ -22,6 +22,8 @@ unsafe impl objc2::Encode for NwPath { const ENCODING: Encoding = usize::ENCODING; } +unsafe impl Send for WatchHandle {} + #[link(name = "Network", kind = "framework")] extern "C" { fn nw_path_monitor_create() -> NwPathMonitorT; -- 2.39.5