diff --git a/src/event_loop.rs b/src/event_loop.rs index 37ae53a05..68bc18c35 100644 --- a/src/event_loop.rs +++ b/src/event_loop.rs @@ -783,8 +783,13 @@ mod dropbox { inner: Option>, } + // We can be sent across threads due to the comment above unsafe impl Send for DropBox {} + // We can also be shared across threads just fine as we'll only ever get a + // reference on at most one thread, regardless of `A`. + unsafe impl Sync for DropBox {} + impl DropBox { /// Creates a new `DropBox` pinned to the current threads. ///