From: Thomas Karpiniec Date: Wed, 26 Jun 2024 10:52:06 +0000 (+1000) Subject: Make WatchHandle Send on Apple X-Git-Tag: v0.1.0~7 X-Git-Url: https://code.octet-stream.net/netwatcher/commitdiff_plain/422be212d60fe053ed9bcb14aad6d1059b3a2906?ds=inline Make WatchHandle Send on Apple --- 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;