-
Notifications
You must be signed in to change notification settings - Fork 107
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
dev: run cargo clippy --all -- -W clippy::all -W clippy::pedantic -W clippy::restriction -W clippy::nursery -D warnings and fix the repo, then add this command in the CI #584
Comments
hey can I take this up? |
Sure! |
yes there are alot of lints there, i am starting with |
added a PR for |
in |
I think if a test util can panic (meaning it's under a cfg test), it's not worth adding the # panic rustdoc, |
What do you mean breaking chage? |
haven't look too deep but i was seeing lints saying so for now i am doing ones that are straight forward and i know for sure that doesn't affect public API |
also according to docs we shouldn't enable this lint groups completely since they can contain many false positives and we would need to use alot of
for example see this lint, it even says in the comment doing this is not idiomatic rust code. I checked other projects and none seem to be using them. For CI i think we can follow what what do you think @Eikix? |
Great idea! Is idiomatic rust 2018 the latest version? |
I think latest is 2021
afaik just so new contributors can run it easily and don't need to remove it, or even add that to git hooks. |
We can do 2021 if it makes sense for us
Mmh I'd think |
just checked there is no
i don't think There is rust-lang/cargo#12115 that got recently merged, but using it would require everyone to have latest rust version.
currently CI uses:
but we should also add |
<!--- Please provide a general summary of your changes in the title above --> <!-- Give an estimate of the time you spent on this PR in terms of work days. Did you spend 0.5 days on this PR or rather 2 days? --> Time spent on this PR: .2 ## Pull request type <!-- Please try to limit your pull request to one type, submit multiple pull requests if needed. --> Please check the type of change your PR introduces: - [ ] Bugfix - [X] Feature - [ ] Code style update (formatting, renaming) - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [ ] Documentation content changes - [ ] Other (please describe): ## What is the current behavior? An absence of the push0 opcode Resolves kkrt-labs#584 ## What is the new behavior? push0 opcode at instruction 5f - - - ## Other information - implements test cases as described: https://eips.ethereum.org/EIPS/eip-3855 - the stackoverflow error throws at length 1026, as opposed to 1025 - gas cost for op0 is 2, i added a small bit to fit it into the structure of `exec_push_i`
Describe the enhancement request
Describe Preferred Solution
Tasks
The text was updated successfully, but these errors were encountered: