Skip to content

Conversation

@Zyouell
Copy link
Contributor

@Zyouell Zyouell commented Nov 12, 2024

This PR addresses warning produced by cargo clippy, it also adds an example pre-commit hook for people to install if they wish so that cargo fmt --all -- --check and cargo clippy will run every time you commit locally as well as a guide to install the hook.

Copy link
Collaborator

@nikkolasg nikkolasg left a comment

Choose a reason for hiding this comment

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

Yessss ! Thank you so much ! 🙏
Now that we can start from a "green" codebase, our OCDs will be satisfied ;)

Copy link
Contributor

@nicholas-mainardi nicholas-mainardi left a comment

Choose a reason for hiding this comment

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

LGTM! Just left a few minor comments. Thanks a lot for taking this burden

pub(crate) const CONTRACT_SET_NUM_IO: usize = contract_extraction::PublicInputs::<F>::TOTAL_LEN;
pub(crate) const VALUE_SET_NUM_IO: usize = values_extraction::PublicInputs::<F>::TOTAL_LEN;
// CHORE: Remove this when relevant PR is merged
#[allow(dead_code)]
Copy link
Contributor

Choose a reason for hiding this comment

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

This constant could be erased if unused I think

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay cool, just didn't want to get rid of it if it was about to be used in a PR thats in Review.


impl MergeCircuitInput {
// CHORE: Remove this when relevant PR is merged
#[allow(dead_code)]
Copy link
Contributor

Choose a reason for hiding this comment

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

This method as well can be removed if unused

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright cool will do

@nikkolasg nikkolasg merged commit efcb3d6 into main Nov 25, 2024
4 checks passed
@nikkolasg nikkolasg deleted the chore/fix-clippy branch November 25, 2024 16:49
Zyouell added a commit that referenced this pull request Jan 13, 2025
This PR addresses warning produced by `cargo clippy`, it also adds an
example pre-commit hook for people to install if they wish so that
`cargo fmt --all -- --check` and `cargo clippy` will run every time you
commit locally as well as a guide to install the hook.
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.

4 participants