Skip to content

Silence clippy#3604

Merged
kchibisov merged 1 commit intomasterfrom
notgull/clippy
Mar 27, 2024
Merged

Silence clippy#3604
kchibisov merged 1 commit intomasterfrom
notgull/clippy

Conversation

@notgull
Copy link
Copy Markdown
Contributor

@notgull notgull commented Mar 24, 2024

It appears that clippy's dead code detection has gotten better. This
commit fixes winit's code to match.

  • Tested on all platforms changed
  • Added an entry to the changelog module if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

Copy link
Copy Markdown
Member

@kchibisov kchibisov left a comment

Choose a reason for hiding this comment

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

I'd say that we shouldn't add that many #[allow(dead_code)] statements. Probably better to use other cfgs if we already adding one.

@notgull
Copy link
Copy Markdown
Contributor Author

notgull commented Mar 24, 2024

@madsmtm The iOS failure in CI looks spurious to me, am I correct?

@notgull
Copy link
Copy Markdown
Contributor Author

notgull commented Mar 24, 2024

I'd say that we shouldn't add that many #[allow(dead_code)] statements. Probably better to use other cfgs if we already adding one.

In many cases we can't use cfg(...) guards to get around this issue, like for error types.

@madsmtm
Copy link
Copy Markdown
Member

madsmtm commented Mar 24, 2024

The iOS failure in CI looks spurious to me, am I correct?

I'd guess so

@notgull notgull requested a review from kchibisov March 25, 2024 04:22
It appears that clippy's dead code detection has gotten better. This
commit fixes winit's code to match.

Signed-off-by: John Nunley <dev@notgull.net>
@daxpedda daxpedda mentioned this pull request Mar 27, 2024
8 tasks
@kchibisov kchibisov merged commit 7b0ef16 into master Mar 27, 2024
@kchibisov kchibisov deleted the notgull/clippy branch March 27, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants