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

chore: improve codebase with some clippy suggestions #867

Merged
merged 14 commits into from
Nov 20, 2024

Conversation

tcoratger
Copy link
Contributor

@tcoratger tcoratger commented Nov 12, 2024

Description

I think this can't be properly caught by the CI before we bump Rust to something like 1.82 but these suggestions still apply and simplify the codebase

  • Targeted PR against correct branch (master)
  • Linked to GitHub issue with discussion and accepted design OR have an explanation in the PR that describes this work.
  • Wrote unit tests
  • Updated relevant documentation in the code
  • Added a relevant changelog entry to the Pending section in CHANGELOG.md
  • Re-reviewed Files changed in the GitHub PR explorer

@tcoratger tcoratger requested review from a team as code owners November 12, 2024 15:53
@tcoratger tcoratger requested review from z-tech, weikengchen and tyshko-rostyslav and removed request for a team November 12, 2024 15:53
@tcoratger
Copy link
Contributor Author

@Pratyush let me know if you want to merge this, even if the automatic detection for the future cannot be automated with clippy by the CI before we bump rust, I think this PR only brings simplifications :)

ec/src/hashing/tests.rs Outdated Show resolved Hide resolved
ec/src/hashing/tests.rs Outdated Show resolved Hide resolved
ec/src/hashing/tests.rs Outdated Show resolved Hide resolved
ec/src/scalar_mul/glv.rs Outdated Show resolved Hide resolved
@Pratyush Pratyush self-requested a review November 14, 2024 15:06
Copy link
Member

@Pratyush Pratyush left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Just some small comments

ec/src/hashing/tests.rs Outdated Show resolved Hide resolved
ec/src/hashing/tests.rs Outdated Show resolved Hide resolved
ec/src/hashing/tests.rs Outdated Show resolved Hide resolved
ec/src/models/bw6/mod.rs Show resolved Hide resolved
ff/src/biginteger/tests.rs Outdated Show resolved Hide resolved
auto-merge was automatically disabled November 14, 2024 15:10

Head branch was pushed to by a user without write access

@tcoratger
Copy link
Contributor Author

Thanks for the PR! Just some small comments

@Pratyush Should be all fixed, let me know if something is missing :)

ff/src/biginteger/tests.rs Outdated Show resolved Hide resolved
ff/src/biginteger/tests.rs Outdated Show resolved Hide resolved
ff/src/biginteger/tests.rs Outdated Show resolved Hide resolved
ff/src/biginteger/tests.rs Outdated Show resolved Hide resolved
tcoratger and others added 4 commits November 20, 2024 18:55
Co-authored-by: Pratyush Mishra <pratyush795@gmail.com>
Co-authored-by: Pratyush Mishra <pratyush795@gmail.com>
Co-authored-by: Pratyush Mishra <pratyush795@gmail.com>
Co-authored-by: Pratyush Mishra <pratyush795@gmail.com>
@tcoratger
Copy link
Contributor Author

@Pratyush ci failure seems unrelated no?

@Pratyush Pratyush added this pull request to the merge queue Nov 20, 2024
Merged via the queue into arkworks-rs:master with commit 902ca31 Nov 20, 2024
36 of 37 checks passed
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