Commit 42f9b3c1 authored by Ian Jackson's avatar Ian Jackson
Browse files

Replace manual Default, and abolish new, in tor-rtcompat

The Default impl was the only call site for new()
parent 89074a13
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -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()
    }
}