From 25aab85f57eddbd506e29d3c4e9a1e08837c0fe6 Mon Sep 17 00:00:00 2001 From: --show-origin Date: Sun, 3 Nov 2024 10:27:42 +0400 Subject: [PATCH] Update docs extra --- src/tls/rustls.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tls/rustls.rs b/src/tls/rustls.rs index a5ab7c00..b8258928 100644 --- a/src/tls/rustls.rs +++ b/src/tls/rustls.rs @@ -56,7 +56,7 @@ impl TlsStream { /// /// If `url` is given, but does not specify a port, it defaults to 7419. /// - /// Internally creates a [`ClientConfig`](https://docs.rs/rustls/latest/rustls/client/struct.ClientConfig.html) + /// Internally, creates a [`ClientConfig`](https://docs.rs/rustls/latest/rustls/client/struct.ClientConfig.html) /// with an _empty_ root certificates store and _no client authentication_. /// /// Use [`with_client_config`](TlsStream::with_client_config) or [`with_connector`](TlsStream::with_connector) @@ -119,10 +119,10 @@ where { /// Create a new TLS connection on an existing stream. /// - /// Internally creates a `ClientConfig` with an empty root certificates store and no client - /// authentication. + /// Internally, creates a [`ClientConfig`](https://docs.rs/tokio-native-tls/latest/tokio_native_tls/native_tls/struct.TlsConnector.html) + /// with an empty root certificates store and no client authentication. /// - /// Use [`new`](TlsStream::new) for a customized `TlsConnector`. + /// Use [`new`](TlsStream::new) for a customized [`TlsConnector`](https://docs.rs/tokio-rustls/latest/tokio_rustls/struct.TlsConnector.html) pub async fn default(stream: S, hostname: String) -> io::Result { let conf = ClientConfig::builder() .with_root_certificates(RootCertStore::empty())