From 4b92fcce33857b92a1d8cf630bcf4a0d01c6c969 Mon Sep 17 00:00:00 2001 From: Antoine Catton Date: Sun, 27 Dec 2020 23:01:50 +0100 Subject: [PATCH] Docfix: mio::tcp has been renamed to mio::net in its latest version This a relic of the old name in the function documentation. --- src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.rs b/src/client.rs index 9b13be9..c1bea07 100644 --- a/src/client.rs +++ b/src/client.rs @@ -196,7 +196,7 @@ pub fn uri_mode(uri: &Uri) -> Result { /// as configuration is equal to calling `client()` function. /// /// Use this function if you need a nonblocking handshake support or if you -/// want to use a custom stream like `mio::tcp::TcpStream` or `openssl::ssl::SslStream`. +/// want to use a custom stream like `mio::net::TcpStream` or `openssl::ssl::SslStream`. /// Any stream supporting `Read + Write` will do. pub fn client_with_config( request: Req, @@ -213,7 +213,7 @@ where /// Do the client handshake over the given stream. /// /// Use this function if you need a nonblocking handshake support or if you -/// want to use a custom stream like `mio::tcp::TcpStream` or `openssl::ssl::SslStream`. +/// want to use a custom stream like `mio::net::TcpStream` or `openssl::ssl::SslStream`. /// Any stream supporting `Read + Write` will do. pub fn client( request: Req,