Skip to content

Commit

Permalink
argon2: fix import behind feature gate
Browse files Browse the repository at this point in the history
  • Loading branch information
Pjottos committed Sep 30, 2021
1 parent e51bcda commit 73930b2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions argon2/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use crate::{
};
use blake2::{digest, Blake2b, Digest};
use byte_slice_cast::{AsByteSlice, AsMutByteSlice};
use core::convert::TryFrom;

#[cfg(feature = "parallel")]
use rayon::prelude::*;
Expand All @@ -18,10 +19,7 @@ use password_hash::{self, PasswordHash, PasswordHasher};
use zeroize::Zeroize;

#[cfg(all(feature = "alloc", feature = "password-hash"))]
use {
core::convert::TryFrom,
password_hash::{Decimal, Ident, ParamsString, Salt},
};
use password_hash::{Decimal, Ident, ParamsString, Salt};

/// Maximum password length in bytes.
pub const MAX_PWD_LEN: usize = 0xFFFFFFFF;
Expand Down

0 comments on commit 73930b2

Please sign in to comment.