Skip to content

Commit

Permalink
Fix some errors take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
C0D3-M4513R committed Aug 11, 2023
1 parent f1c660c commit 2011ef0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions argon2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ pub struct Argon2<'key> {
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
cpu_feat_avx2: avx2_cpuid::InitToken,
}
impl Default for Argon2<'_> {
fn default() -> Self {
Self::new(Algorithm::default(), Version::default(), Params::default())
}
}

impl fmt::Debug for Argon2<'_> {
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
Expand Down

0 comments on commit 2011ef0

Please sign in to comment.