Skip to content

Commit 56d8918

Browse files
authored
argon2: use password_hash::Error::OutOfMemory (#574)
1 parent 6679cbd commit 56d8918

File tree

3 files changed

+16
-75
lines changed

3 files changed

+16
-75
lines changed

.readme/Cargo.lock

Lines changed: 14 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

argon2/src/error.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ impl From<Error> for password_hash::Error {
120120
Error::ThreadsTooMany => InvalidValue::TooLong.param_error(),
121121
Error::TimeTooSmall => InvalidValue::TooShort.param_error(),
122122
Error::VersionInvalid => password_hash::Error::Version,
123-
// TODO: fix after `password_hash::Error::OutOfMemory` will be added
124-
Error::OutOfMemory => InvalidValue::TooLong.param_error(),
123+
Error::OutOfMemory => password_hash::Error::OutOfMemory,
125124
}
126125
}
127126
}

0 commit comments

Comments
 (0)