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 several clippy complexity warnings #800

Merged
merged 1 commit into from
Sep 8, 2024

Conversation

cyrgani
Copy link
Contributor

@cyrgani cyrgani commented Sep 8, 2024

A first step towards making clippy complain less: this PR removes unnecessary casts to the same type, unused lifetimes, changes #cfg(all(feature = "audio"))] to #[cfg(feature = "audio")] and !CONTEXT.is_none() to CONTEXT.is_some().

I have not focused on the style clippy warnings, as they are often personal preferences, so the changes in this PR should be trivial simplifications only.

@not-fl3
Copy link
Owner

not-fl3 commented Sep 8, 2024

Thanks for PR!

@not-fl3 not-fl3 merged commit 43cd774 into not-fl3:master Sep 8, 2024
6 checks passed
@cyrgani cyrgani deleted the clippy-simplifications branch September 8, 2024 21:03
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.

2 participants