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 clippy lints #71

Merged
merged 2 commits into from
Oct 16, 2023
Merged

Fix clippy lints #71

merged 2 commits into from
Oct 16, 2023

Conversation

SomeoneToIgnore
Copy link
Contributor

Ran cargo clippy and fixed most of the issues that appeared.
Main ones:

  • null_ptr comparison can be replaced with is_null_ptr
  • various match over one variant could be replaced with if let
  • various as conversions were either redundant or could be replaced (as with offset -> add), same with .into()
  • unsafe { *playdate } extracted into one call in the method, to reduce the amount of errors

More warnings are left still, but this looks like a good start.

boozook
boozook previously approved these changes Oct 16, 2023
@boozook boozook merged commit eab8ece into pd-rs:main Oct 16, 2023
1 check passed
@SomeoneToIgnore SomeoneToIgnore deleted the fix-clippy-lints branch October 16, 2023 10:08
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