Skip to content

Commit 3994a30

Browse files
fix examples
1 parent 322250f commit 3994a30

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

examples/client/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use async_std::io;
2-
use async_std::io::Write;
32
use async_std::net::TcpStream;
3+
use async_std::prelude::*;
44
use async_std::task;
55
use async_tls::TlsConnector;
66

examples/server/src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use async_std::io;
2-
use async_std::io::Write;
32
use async_std::net::{TcpListener, TcpStream};
4-
use async_std::stream::Stream;
3+
use async_std::prelude::*;
54
use async_std::task;
65
use async_tls::TlsAcceptor;
76
use rustls::internal::pemfile::{certs, rsa_private_keys};
@@ -41,7 +40,7 @@ fn load_keys(path: &Path) -> io::Result<Vec<PrivateKey>> {
4140

4241
/// Configure the server using rusttls
4342
/// See https://docs.rs/rustls/0.16.0/rustls/struct.ServerConfig.html for details
44-
///
43+
///
4544
/// A TLS server needs a certificate and a fitting private key
4645
fn load_config(options: &Options) -> io::Result<ServerConfig> {
4746
let certs = load_certs(&options.cert)?;

0 commit comments

Comments
 (0)