Skip to content

Commit ccabc93

Browse files
authored
Fix new clippy version issues (#291)
1 parent 2ae3c19 commit ccabc93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/client/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ mod task;
8888
#[derive(Debug)]
8989
pub enum GenericTcpStream {
9090
Tcp(#[pin] TcpStream),
91-
SecureTcp(#[pin] TlsStream<TcpStream>),
91+
SecureTcp(#[pin] Box<TlsStream<TcpStream>>),
9292
}
9393

9494
impl AsyncRead for GenericTcpStream {

src/client/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl ClientOptions {
132132
let domain = ServerName::try_from(host.clone()).unwrap();
133133
let connector = TlsConnector::from(Arc::new(config));
134134
let conn = connector.connect(domain, stream).await?;
135-
Ok(GenericTcpStream::SecureTcp(conn))
135+
Ok(GenericTcpStream::SecureTcp(Box::new(conn)))
136136
}
137137
match &self.tls {
138138
TlsConfiguration::Trusted {

0 commit comments

Comments
 (0)