Skip to content

Commit 925a87f

Browse files
authored
Ensure examples use re-exported rustls types outside of the tokio-rustls context (#56)
1 parent caf4e82 commit 925a87f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::sync::Arc;
88
use argh::FromArgs;
99
use tokio::io::{copy, split, stdin as tokio_stdin, stdout as tokio_stdout, AsyncWriteExt};
1010
use tokio::net::TcpStream;
11-
use tokio_rustls::TlsConnector;
11+
use tokio_rustls::{rustls, TlsConnector};
1212

1313
/// Tokio Rustls client example
1414
#[derive(FromArgs)]

examples/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use pki_types::{CertificateDer, PrivateKeyDer};
99
use rustls_pemfile::{certs, rsa_private_keys};
1010
use tokio::io::{copy, sink, split, AsyncWriteExt};
1111
use tokio::net::TcpListener;
12-
use tokio_rustls::TlsAcceptor;
12+
use tokio_rustls::{rustls, TlsAcceptor};
1313

1414
/// Tokio Rustls server example
1515
#[derive(FromArgs)]

0 commit comments

Comments
 (0)