diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-03-06 13:18:29 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-03-06 13:18:29 -0500 |
commit | 9e77724efff281f0fe6d05440ad65c5ab561f380 (patch) | |
tree | ee5983d46b9f040a9c9880df9eb02b8d36956628 /src/identity.rs | |
parent | abc01f5a3865da5bd962402a8f7d9fd95c149622 (diff) | |
download | rbw-9e77724efff281f0fe6d05440ad65c5ab561f380.tar.gz rbw-9e77724efff281f0fe6d05440ad65c5ab561f380.zip |
switch to thiserror
Diffstat (limited to 'src/identity.rs')
-rw-r--r-- | src/identity.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/identity.rs b/src/identity.rs index 8415765..602940f 100644 --- a/src/identity.rs +++ b/src/identity.rs @@ -13,7 +13,7 @@ impl Identity { iterations: u32, ) -> Result<Self> { let iterations = std::num::NonZeroU32::new(iterations) - .context(crate::error::Pbkdf2ZeroIterations)?; + .ok_or(Error::Pbkdf2ZeroIterations)?; let mut keys = crate::locked::Vec::new(); keys.extend(std::iter::repeat(0).take(64)); |