-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: make some order in error types #157
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
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.
Reviewed 8 of 8 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @amosStarkware and @nimrod-starkware)
crates/committer/src/forest_errors.rs
line 8 at r1 (raw file):
use thiserror::Error; pub(crate) type ForestResult<T> = Result<T, ForestError<LeafDataImpl>>;
newline after use
s
Suggestion:
use thiserror::Error;
pub(crate) type ForestResult<T> = Result<T, ForestError<LeafDataImpl>>;
crates/committer/src/forest_errors.rs
line 31 at r1 (raw file):
#[error("Can't fill storage trie, because there is no updated skeleton at address {0:?}")] MissingUpdatedSkeleton(ContractAddress), }
no need for extra indirection
Suggestion:
#[error("Can't build storage trie's updated skeleton, because there is no original skeleton at address {0:?}")]
MissingOriginalSkeleton(ContractAddress),
#[allow(dead_code)]
#[error("Can't fill storage trie, because there is no updated skeleton at address {0:?}")]
MissingUpdatedSkeleton(ContractAddress),
}
8e10052
to
ba49f80
Compare
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.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @amosStarkware and @dorimedini-starkware)
crates/committer/src/forest_errors.rs
line 8 at r1 (raw file):
Previously, dorimedini-starkware wrote…
newline after
use
s
Done.
crates/committer/src/forest_errors.rs
line 31 at r1 (raw file):
Previously, dorimedini-starkware wrote…
no need for extra indirection
Done.
ba49f80
to
8f294f3
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #157 +/- ##
==========================================
- Coverage 61.58% 61.44% -0.14%
==========================================
Files 35 36 +1
Lines 1442 1442
Branches 1442 1442
==========================================
- Hits 888 886 -2
Misses 512 512
- Partials 42 44 +2 ☔ View full report in Codecov by Sentry. |
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.
Reviewed 5 of 5 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @amosStarkware)
This change is