Skip to content

Commit c1a92e9

Browse files
authored
password-hash: make PasswordVerifier<H: ?Sized> (#2122)
Changes the `H` generic parameter of `PasswordVerifier` to allow dynamically sized types. This is useful for `mcf::PasswordHashRef`, which is a newtype for `str`.
1 parent 875f21b commit c1a92e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

password-hash/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ pub trait CustomizedPasswordHasher<H> {
113113
///
114114
/// This trait is object safe and can be used to implement abstractions over
115115
/// multiple password hashing algorithms.
116-
pub trait PasswordVerifier<H> {
116+
pub trait PasswordVerifier<H: ?Sized> {
117117
/// Compute this password hashing function against the provided password
118118
/// using the parameters from the provided password hash and see if the
119119
/// computed output matches.

0 commit comments

Comments
 (0)