diff --git a/examples/client.rs b/examples/client.rs index ed2ba963..87abec77 100644 --- a/examples/client.rs +++ b/examples/client.rs @@ -8,7 +8,7 @@ use std::sync::Arc; use argh::FromArgs; use tokio::io::{copy, split, stdin as tokio_stdin, stdout as tokio_stdout, AsyncWriteExt}; use tokio::net::TcpStream; -use tokio_rustls::TlsConnector; +use tokio_rustls::{rustls, TlsConnector}; /// Tokio Rustls client example #[derive(FromArgs)] diff --git a/examples/server.rs b/examples/server.rs index a2a0bc4a..741d2cd1 100644 --- a/examples/server.rs +++ b/examples/server.rs @@ -9,7 +9,7 @@ use pki_types::{CertificateDer, PrivateKeyDer}; use rustls_pemfile::{certs, rsa_private_keys}; use tokio::io::{copy, sink, split, AsyncWriteExt}; use tokio::net::TcpListener; -use tokio_rustls::TlsAcceptor; +use tokio_rustls::{rustls, TlsAcceptor}; /// Tokio Rustls server example #[derive(FromArgs)]