Skip to content

Windows: fix the raw-win-handle feature#2233

Closed
sidit77 wants to merge 2 commits intolinebender:masterfrom
sidit77:master
Closed

Windows: fix the raw-win-handle feature#2233
sidit77 wants to merge 2 commits intolinebender:masterfrom
sidit77:master

Conversation

@sidit77
Copy link

@sidit77 sidit77 commented Jul 25, 2022

The raw-win-handle feature is currently broken on windows because it was not properly updated to raw-window-handle 0.4 when that dependency was bumped.

Copy link
Member

@jneem jneem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! It looks like we really do need to be running this feature in CI -- I'll try to make a PR for that tomorrow. In the meantime, just a minor quibble about the comment...

as *mut core::ffi::c_void
},
..WindowsHandle::empty()
// Using empty + set fields instead Win32Handle{...} to shut up a unexplainable compiler error
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't say it's "unexplainable." Win32Handle is marked as #[non_exhaustive], which is explained here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that explains it. Thanks.

@jneem
Copy link
Member

jneem commented Aug 2, 2022

Thanks again for the PR! But since #2238 fixes this and also bumps raw-window-handle to 0.5, I'm going to close this one and merge that one instead.

@jneem jneem closed this Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants