Skip to content

Add public inherent methods to hashing implementation#99

Draft
nickbabcock wants to merge 1 commit intomasterfrom
inherent
Draft

Add public inherent methods to hashing implementation#99
nickbabcock wants to merge 1 commit intomasterfrom
inherent

Conversation

@nickbabcock
Copy link
Owner

When someone uses a highway hasher without importing the HighwayHash trait, they get a cryptic "private method" error because trait methods aren't available without the trait import and it happens to be that the backing implementation has the same function name.

Rust-analyzer shows unhelpful error messages and no quick fixes.

This seems less than ideal, so this commit makes implementations public so that the trait import is not needed.

When someone uses a highway hasher without importing the HighwayHash
trait, they get a cryptic "private method" error because trait methods
aren't available without the trait import and it happens to be that the
backing implementation has the same function name.

Rust-analyzer shows unhelpful error messages and no quick fixes.

This seems less than ideal, so this commit makes implementations public
so that the trait import is not needed.
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.

1 participant