Skip to content

Commit 2dc47f8

Browse files
authored
password-hash: cleanup errors (#1824)
1 parent 61f6839 commit 2dc47f8

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Cargo.lock

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

password-hash/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ as well as a `no_std`-friendly implementation of the PHC string format
1717
"""
1818

1919
[dependencies]
20-
base64ct = "1.6"
20+
base64ct = "1.7"
2121
subtle = { version = "2", default-features = false }
2222

2323
# optional dependencies

password-hash/src/errors.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ impl fmt::Display for Error {
106106
impl core::error::Error for Error {
107107
fn source(&self) -> Option<&(dyn core::error::Error + 'static)> {
108108
match self {
109-
// TODO: restore after base64ct will migrate to core::error::Error
110-
// Self::B64Encoding(err) => Some(err),
109+
Self::B64Encoding(err) => Some(err),
111110
Self::ParamValueInvalid(err) => Some(err),
112111
Self::SaltInvalid(err) => Some(err),
113112
_ => None,

0 commit comments

Comments
 (0)