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 warnings #2076

Merged
merged 6 commits into from Dec 11, 2021
Merged

Fix warnings #2076

merged 6 commits into from Dec 11, 2021

Conversation

filnet
Copy link
Contributor

@filnet filnet commented Nov 28, 2021

  • Tested on all platforms changed
  • Compilation warnings were addressed
  • cargo fmt has been run on this branch
  • cargo doc builds successfully
  • Added an entry to CHANGELOG.md 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

@filnet
Copy link
Contributor Author

filnet commented Nov 28, 2021

Would it make sense to fail the builds if there are warnings like the ones this PR fixes ?

@madsmtm
Copy link
Member

madsmtm commented Nov 28, 2021

Thanks for this, these have been bothering me for a while!

Would it make sense to fail the builds if there are warnings like the ones this PR fixes ?

I would say yes (can easily be done with RUSTFLAGS: "-D warnings")

@filnet
Copy link
Contributor Author

filnet commented Nov 28, 2021

I would say yes (can easily be done with RUSTFLAGS: "-D warnings")

Where would one do that. There are no CI related files in the winit repo.

@maroider
Copy link
Member

There are no CI related files in the winit repo.

GitHub actions looks in .github/workflows for workflows, and our CI is in .github/workflows/ci.yml.

@filnet
Copy link
Contributor Author

filnet commented Nov 28, 2021

The wasm builds fail as expected.

@filnet filnet force-pushed the fix_warnings branch 2 times, most recently from 4d19aca to ee785b2 Compare November 29, 2021 16:43
@filnet
Copy link
Contributor Author

filnet commented Nov 29, 2021

I am getting spammed by CI messages about unrelated failed checks whenever I push changes to the branch.
Doesn't make for a good user experience when contributing to winit.

The failed checks should be disabled until properly fixed ?

@filnet
Copy link
Contributor Author

filnet commented Nov 29, 2021

GitHub actions looks in .github/workflows for workflows, and our CI is in .github/workflows/ci.yml.

Totally overlooked them ! Thanks.

@madsmtm
Copy link
Member

madsmtm commented Nov 29, 2021

Please don't disable the failing nightly checks; they're very useful for spotting future incompatibility errors (see #2078), and they don't prevent people from merging the PR. If we disable them, we forget them 😉

@maroider
Copy link
Member

maroider commented Nov 30, 2021

and they don't prevent people from merging the PR

They don't‽

Now that you've mentioned it, the "Squash and merge" button does look awfully clickable.

I am getting spammed by CI messages about unrelated failed checks whenever I push changes to the branch.
Doesn't make for a good user experience when contributing to winit.

The notification spam is unfortunate, but I don't know if we can turn those off.

@madsmtm
Copy link
Member

madsmtm commented Nov 30, 2021

The notification spam is unfortunate, but I don't know if we can turn those off.

I don't think we can, though people can control it themselves under Settings => Notifications => Actions.

@filnet
Copy link
Contributor Author

filnet commented Dec 9, 2021

Ping.

examples/request_redraw_threaded.rs Outdated Show resolved Hide resolved
@maroider maroider merged commit 18a61f1 into rust-windowing:master Dec 11, 2021
@rukai
Copy link
Contributor

rukai commented Dec 24, 2021

Ah, just a heads up that warnings are not stable.
So if you want to fail on warnings you should really pin your rust version, see https://github.com/rukai/mado_rust_library_ci_template/ for more details.

@madsmtm
Copy link
Member

madsmtm commented Dec 24, 2021

Well, we run CI on nightly, which would surface changes to warnings that would start failing our CI in a way that prevents a merge.

I'm not strictly opposed to pinning our Rust version, though I think it should be for other reasons like guaranteeing a MSRV.

@rukai
Copy link
Contributor

rukai commented Dec 24, 2021

Ah sure, if your paying enough attention to the nightly workflow then that would work too.

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.

None yet

4 participants