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

Use concrete implementations #842

Merged
merged 3 commits into from
Nov 11, 2020
Merged

Use concrete implementations #842

merged 3 commits into from
Nov 11, 2020

Conversation

vmx
Copy link
Contributor

@vmx vmx commented Nov 11, 2020

Summary of changes

Instead of trait bounds, use concrete implementations. I think this improves the code, I prefer having less trait bounds.

Other information and links

It is possible to change this due to the upgrade to multihash 0.13.

Instead of trait bounds, use concrete implementations.
@CLAassistant
Copy link

CLAassistant commented Nov 11, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@austinabell austinabell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, this does just limit the API externally to not allow other multihash codes to be used with our tooling, but I doubt that usage exists and it's not a priority.

It is for sure cleaner

@ec2 ec2 merged commit ef2583d into ChainSafe:main Nov 11, 2020
@austinabell
Copy link
Contributor

Thanks! :)

@vmx vmx deleted the less-mh-trait-bounds branch November 12, 2020 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants