Skip to content

Commit

Permalink
macos: impl Sync for HotplugWatch
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmehall committed Jan 6, 2025
1 parent 2f7336e commit c59e0fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/platform/macos_iokit/hotplug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ impl MacHotplugWatch {
}
}

// Safety: Structurally Send and only method is &mut self, so Sync
// doesn't have any additional requirements.
unsafe impl Sync for MacHotplugWatch {}

fn register_notification(
port: &NotificationPort,
dictionary: &CFDictionary,
Expand Down

0 comments on commit c59e0fe

Please sign in to comment.