Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update windows-sys to version 0.30.0 #52

Closed
wants to merge 1 commit into from
Closed

Conversation

kennykerr
Copy link
Collaborator

Callbacks now consistently use Option (#1344)

@@ -673,7 +673,7 @@ unsafe fn connect_overlapped(

let ptr = CONNECTEX.get(socket)?;
assert!(ptr != 0);
let connect_ex = mem::transmute::<_, LPFN_CONNECTEX>(ptr);
let connect_ex = mem::transmute::<_, LPFN_CONNECTEX>(ptr).unwrap();
Copy link
Collaborator Author

@kennykerr kennykerr Jan 13, 2022

Choose a reason for hiding this comment

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

In each case, the assert on the previous line already validates that the Option callback can be unwrapped. Perhaps there's a simpler way to write this or the assert is now just redundant.

@kennykerr kennykerr closed this Feb 11, 2022
@faern faern deleted the windows-sys.30 branch August 5, 2023 19:58
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.

None yet

1 participant