WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@tarcieri
Copy link
Member

Changes the bound on CustomizedPasswordHasher::Params to remove the Err = Error bound on FromStr.

Instead, the blanket impl of PasswordVerifier has been updated to require Error: From<E> where E is FromStr::Err.

This allows crates to still use custom error types for params, which may be more expressive for a specific algorithm.

Changes the bound on `CustomizedPasswordHasher::Params` to remove the
`Err = Error` bound on `FromStr`.

Instead, the blanket impl of `PasswordVerifier` has been updated to
require `Error: From<E>` where `E` is `FromStr::Err`.

This allows crates to still use custom error types for params, which may
be more expressive for a specific algorithm.
@tarcieri tarcieri force-pushed the password-hash/relax-params-fromstr-error-bound branch from 72b67f9 to d9e1f43 Compare December 10, 2025 16:47
@tarcieri tarcieri merged commit 8bb7b93 into master Dec 10, 2025
11 checks passed
@tarcieri tarcieri deleted the password-hash/relax-params-fromstr-error-bound branch December 10, 2025 16:50
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