-
Notifications
You must be signed in to change notification settings - Fork 840
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Just one question: Should we check whether the CI needs also to be changed to consume rustfmt.toml desired settings from the file?
As it does not make sense that the rustfmt check keeps failing.
3b0166b
to
12a0830
Compare
I think the issue was that I ran
Running |
@ed255 can we merge and check the rest of PR's statuses? |
Yes! I'll merge now |
A note for currently open PRs:
This will affect #170 #268 #292 #297 #298 #301 #302 #303 #307 #310 |
…-scaling-explorations#311) * Add a `LtGadget` to avoid mock prover assigning a value which is greater than 255. * Revert "Add a `LtGadget` to avoid mock prover assigning a value which is greater than 255." This reverts commit 537748b. * Assign InvalidOpcode to `exec_step.error` directly. Since it has been done in `get_step_err`. * Delete `internal` test cases since it has no effects for invalid opcode error. * Delete mapping `OpcodeId::INVALID` to dummy function in `fn_gen_associated_ops`. And Move `fn_gen_associated_ops` to the end of `gen_associated_ops` (after `get_step_err`). * Revert "Delete `internal` test cases since it has no effects for invalid opcode error." This reverts commit 759ed13. * Fix to only keep one call data offset and length pair for internal test.
As discussed, we agreed to increase the
max_width
set in the rustfmt.toml to 100 in order to improve the code readability considering current standards (this is the default used by rustfmt)Apart from changing the
rustfmt.toml
I've reformatted all code to pass the CI checks using:cargo check --all-features # required to generate `circuit-benchmarks/src/bench_params.rs` cargo fmt --all
For opened PRs I'm sure that after this is merged they'll find conflicts. Maybe the easiest way for them to resolve the conflicts will be to first update the rustfmt.toml (to set max_width = 100) and run
cargo fmt --all
in their branch, commit, and then merge main into the branch.NOTE: I think the easiest way to verify this PR is to do the same change on a local branch and compare it with this branch and see that there are no differences.