File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
use async_std:: io;
2
- use async_std:: io:: Write ;
3
2
use async_std:: net:: TcpStream ;
3
+ use async_std:: prelude:: * ;
4
4
use async_std:: task;
5
5
use async_tls:: TlsConnector ;
6
6
Original file line number Diff line number Diff line change 1
1
use async_std:: io;
2
- use async_std:: io:: Write ;
3
2
use async_std:: net:: { TcpListener , TcpStream } ;
4
- use async_std:: stream :: Stream ;
3
+ use async_std:: prelude :: * ;
5
4
use async_std:: task;
6
5
use async_tls:: TlsAcceptor ;
7
6
use rustls:: internal:: pemfile:: { certs, rsa_private_keys} ;
@@ -41,7 +40,7 @@ fn load_keys(path: &Path) -> io::Result<Vec<PrivateKey>> {
41
40
42
41
/// Configure the server using rusttls
43
42
/// See https://docs.rs/rustls/0.16.0/rustls/struct.ServerConfig.html for details
44
- ///
43
+ ///
45
44
/// A TLS server needs a certificate and a fitting private key
46
45
fn load_config ( options : & Options ) -> io:: Result < ServerConfig > {
47
46
let certs = load_certs ( & options. cert ) ?;
You can’t perform that action at this time.
0 commit comments