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

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)