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

Fix sample #2522

Closed
wants to merge 1 commit into from
Closed

Fix sample #2522

wants to merge 1 commit into from

Conversation

MartinAskestad
Copy link

Fix the missing Ok(())

Fixes: #2521⬅️ Be sure to refer to an existing issue here!

Copy link
Contributor

@tim-weis tim-weis left a comment

Choose a reason for hiding this comment

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

Samples are implemented to compile with the latest (potentially not yet released) versions of the crates. The signature for EnumWindows has changed from returning a BOOL to returning a windows_core::Result (see #2476), meaning that the code is correct already.

The proposed changes aren't required, and indeed cause a regression: The result of calling EnumWindows is now ignored (which hopefully triggers a clippy warning).

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.

Error in sample
3 participants