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

Apply cargo clippy lints #108

Merged
merged 1 commit into from
Mar 31, 2024
Merged

Apply cargo clippy lints #108

merged 1 commit into from
Mar 31, 2024

Conversation

Pi-Cla
Copy link
Contributor

@Pi-Cla Pi-Cla commented Mar 31, 2024

Cargo clippy told me that in a bunch of spots we did not need to pass in references as they would be immediately dereferenced anyways (https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow)
and that we could use try_fold() instead of fold() for handling the Option (https://rust-lang.github.io/rust-clippy/master/index.html#/manual_try_fold)

@tummychow tummychow merged commit a454f36 into tummychow:master Mar 31, 2024
3 checks passed
@Pi-Cla Pi-Cla deleted the patch-1 branch March 31, 2024 19:59
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