diff --git a/src/certs/allow_all.rs b/src/certs/allow_all.rs index d204116..7a2ee68 100644 --- a/src/certs/allow_all.rs +++ b/src/certs/allow_all.rs @@ -13,8 +13,15 @@ use tokio_rustls::rustls::{ #[derive(Debug)] pub struct AllowAllCertVerifier(Arc); +impl Default for AllowAllCertVerifier { + /// Same as [`AllowAllCertVerifier::new()`]. + fn default() -> Self { + Self::new() + } +} + impl AllowAllCertVerifier { - /// Constructor for this verifier + /// Constructor for this verifier. pub fn new() -> Self { AllowAllCertVerifier( CryptoProvider::get_default()