Skip to content

Commit 2ae3320

Browse files
committed
Fix clippy warning and accept another
1 parent 40d32d4 commit 2ae3320

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/connector.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ impl HttpsConnector<HttpConnector> {
3838
}
3939
}
4040

41+
#[cfg(feature = "tokio-runtime")]
42+
impl Default for HttpsConnector<HttpConnector> {
43+
fn default() -> Self {
44+
Self::new()
45+
}
46+
}
47+
4148
impl<T> fmt::Debug for HttpsConnector<T> {
4249
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4350
f.debug_struct("HttpsConnector").finish()
@@ -70,6 +77,8 @@ where
7077
{
7178
type Transport = MaybeHttpsStream<T::Transport>;
7279
type Error = io::Error;
80+
81+
#[allow(clippy::type_complexity)]
7382
type Future = Pin<
7483
Box<
7584
dyn Future<

0 commit comments

Comments
 (0)