style: add impl Default
This commit is contained in:
parent
67864e4842
commit
c3b50e4ecc
1 changed files with 8 additions and 1 deletions
|
@ -13,8 +13,15 @@ use tokio_rustls::rustls::{
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct AllowAllCertVerifier(Arc<CryptoProvider>);
|
pub struct AllowAllCertVerifier(Arc<CryptoProvider>);
|
||||||
|
|
||||||
|
impl Default for AllowAllCertVerifier {
|
||||||
|
/// Same as [`AllowAllCertVerifier::new()`].
|
||||||
|
fn default() -> Self {
|
||||||
|
Self::new()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl AllowAllCertVerifier {
|
impl AllowAllCertVerifier {
|
||||||
/// Constructor for this verifier
|
/// Constructor for this verifier.
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
AllowAllCertVerifier(
|
AllowAllCertVerifier(
|
||||||
CryptoProvider::get_default()
|
CryptoProvider::get_default()
|
||||||
|
|
Loading…
Reference in a new issue