diff options
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/tor-rtcompat/src/impls/native_tls.rs | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/crates/tor-rtcompat/src/impls/native_tls.rs b/crates/tor-rtcompat/src/impls/native_tls.rs index 4bdda7243..4ac7aa7c3 100644 --- a/crates/tor-rtcompat/src/impls/native_tls.rs +++ b/crates/tor-rtcompat/src/impls/native_tls.rs @@ -13,6 +13,7 @@ use std::{ /// A [`TlsProvider`] that uses `native_tls`. /// /// It supports wrapping any reasonable stream type that implements `AsyncRead` + `AsyncWrite`. +#[derive(Default)] #[non_exhaustive] pub struct NativeTlsProvider {} @@ -86,16 +87,3 @@ where } } } - -impl NativeTlsProvider { - /// Construct a new [`NativeTlsProvider`.] - pub(crate) fn new() -> Self { - NativeTlsProvider {} - } -} - -impl Default for NativeTlsProvider { - fn default() -> Self { - Self::new() - } -} |
