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(reth-network-p2p) support no_std #10047

Closed

Conversation

martinezjorge
Copy link
Contributor

Towards #9478
Stacks on top of #10011

Comment on lines +205 to +216
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)
}
}

Copy link
Member

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

Copy link
Contributor Author

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!

Copy link
Member

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

@martinezjorge
Copy link
Contributor Author

martinezjorge commented Aug 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants