diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs index 21e04abf..4cd0c63c 100644 --- a/argon2/src/lib.rs +++ b/argon2/src/lib.rs @@ -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 {