mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 21:30:03 -04:00
Update for changes in Send/Sync traits
This commit is contained in:
@@ -62,3 +62,6 @@ impl Drop for HeadlessContext {
|
||||
unsafe { ffi::OSMesaDestroyContext(self.context) }
|
||||
}
|
||||
}
|
||||
|
||||
unsafe impl Send for HeadlessContext {}
|
||||
unsafe impl Sync for HeadlessContext {}
|
||||
|
||||
@@ -34,6 +34,9 @@ struct XWindow {
|
||||
im: ffi::XIM,
|
||||
}
|
||||
|
||||
unsafe impl Send for Window {}
|
||||
unsafe impl Sync for Window {}
|
||||
|
||||
impl Drop for XWindow {
|
||||
fn drop(&mut self) {
|
||||
unsafe {
|
||||
|
||||
Reference in New Issue
Block a user