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 all warnings, and deny them in CI #144

Merged
merged 3 commits into from
Mar 2, 2024
Merged

Conversation

asomers
Copy link
Collaborator

@asomers asomers commented Feb 25, 2024

This change removes two unused macros: support_file_flags and assert_mtime_unchanged. They can be resurrected from git history if we ever need them.

* useless_conversion
* needless_borrow
* needless_borrows_for_generic_args
* unnecessary_cast
* dead_code
And also clippy::borrow_interior_mutable_const .  Even though we never
intended to mutate those objects, it was technically still a problem to
make them const, because it results in the compiler copying them
anywhere they are needed.  So better to make them static.

While I'm here, replace the once_cell crate with the new
std::sync::OnceLock structure, to reduce external dependencies.
@asomers asomers requested a review from musikid February 25, 2024 16:33
This change removes two unused macros: support_file_flags and
assert_mtime_unchanged.  They can be resurrected from git history if we
ever need them.
@asomers asomers merged commit c722dea into musikid:master Mar 2, 2024
3 checks passed
@asomers asomers deleted the deny-warnings branch March 2, 2024 14:54
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

2 participants