aboutsummaryrefslogtreecommitdiffstats
path: root/src/identity.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/identity.rs')
-rw-r--r--src/identity.rs2
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));