generated from PlexSheep/rs-base
automatic cargo CI changes
This commit is contained in:
parent
1e722a56ad
commit
e859dd3f95
|
@ -11,7 +11,9 @@ use tokio::{
|
||||||
net::TcpStream,
|
net::TcpStream,
|
||||||
};
|
};
|
||||||
use tokio_rustls::{
|
use tokio_rustls::{
|
||||||
rustls::{self, pki_types}, TlsConnector, client::TlsStream
|
client::TlsStream,
|
||||||
|
rustls::{self, pki_types},
|
||||||
|
TlsConnector,
|
||||||
};
|
};
|
||||||
use webpki_roots;
|
use webpki_roots;
|
||||||
|
|
||||||
|
@ -45,7 +47,9 @@ impl Client {
|
||||||
return Err(err.into());
|
return Err(err.into());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let stream = connector.connect(domain.clone(), TcpStream::connect(&cfg.addr).await?).await?;
|
let stream = connector
|
||||||
|
.connect(domain.clone(), TcpStream::connect(&cfg.addr).await?)
|
||||||
|
.await?;
|
||||||
|
|
||||||
Ok(Client {
|
Ok(Client {
|
||||||
cfg: cfg.clone(),
|
cfg: cfg.clone(),
|
||||||
|
|
Loading…
Reference in New Issue