-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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(reth-network-p2p) support no_std #10047
chore(reth-network-p2p) support no_std #10047
Conversation
…us error variants
impl From<RequestError> for DownloadError { | ||
fn from(error: RequestError) -> Self { | ||
Self::RequestError(error) | ||
} | ||
} | ||
|
||
impl From<ProviderError> for DownloadError { | ||
fn from(error: ProviderError) -> Self { | ||
Self::Provider(error) | ||
} | ||
} | ||
|
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.
same here as other pr, these don't have to be done manually, use https://jeltef.github.io/derive_more/derive_more/from.html
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.
Thanks for the review, this will make it much less verbose!
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.
exactly! and the great thing in turn with decreased verbosity, is that it's way easier to read the code that implements the functionality that sets this program apart from others
I originally opened this PR to stack on top of #10011 because some changes I made caused this crate to error. However, I was able to get that fixed over there without causing issues here so I'm going to close this PR. I may eventually have to come back here but for now I'm slightly out of scope so I"ll close this for now. |
Towards #9478
Stacks on top of #10011