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(consensus): add lints to consensus #1850

Closed

Conversation

giladchase
Copy link
Contributor

Lior banned as repo-wide, unless absolutely necessary.

Nearly all as uses can be replaced with [Try]From which doesn't have implicit coercions like as (we encountered several bugs due to these coercions).

Motivation: we are standardizing lints across the repo and CI, instead of each crate having separate sets of lints.

Lior banned `as` repo-wide, unless absolutely necessary.

Nearly all as uses can be replaced with [Try]From which doesn't have
implicit coercions like as (we encountered several bugs due to these coercions).

Motivation: we are standardizing lints across the repo and CI, instead
of each crate having separate sets of lints.
@reviewable-StarkWare
Copy link

This change is Reviewable

@giladchase giladchase closed this Nov 5, 2024
@giladchase giladchase deleted the gilad/consensus-lints branch November 5, 2024 18:39
Copy link

codecov bot commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 9.46%. Comparing base (6965664) to head (ddf8d03).
Report is 2 commits behind head on gilad/papyrus-test-utils-lints.

Files with missing lines Patch % Lines
...encing/papyrus_consensus/src/bin/run_simulation.rs 0.00% 5 Missing ⚠️
Additional details and impacted files
@@                        Coverage Diff                        @@
##           gilad/papyrus-test-utils-lints   #1850      +/-   ##
=================================================================
+ Coverage                            0.00%   9.46%   +9.46%     
=================================================================
  Files                                   1      83      +82     
  Lines                                 309    9982    +9673     
  Branches                              309    9982    +9673     
=================================================================
+ Hits                                    0     945     +945     
- Misses                                309    8994    +8685     
- Partials                                0      43      +43     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants