]> code.octet-stream.net Git - netwatcher/commitdiff
Make WatchHandle Send on Apple
authorThomas Karpiniec <tom.karpiniec@outlook.com>
Wed, 26 Jun 2024 10:52:06 +0000 (20:52 +1000)
committerThomas Karpiniec <tom.karpiniec@outlook.com>
Wed, 26 Jun 2024 10:52:06 +0000 (20:52 +1000)
src/watch_mac.rs

index 42e7217ad46a09f33c1ce9277da588ce6ac283e9..c44169cf25a28b9fc937ecafd3865bc2e76bba35 100644 (file)
@@ -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;