From b5180f78f5eac835894127ab386f8f2684be04e3 Mon Sep 17 00:00:00 2001 From: rust1248 <109891485+rust1248@users.noreply.github.com> Date: Thu, 22 Jun 2023 06:03:59 +0000 Subject: [PATCH 1/2] Update builders documentation --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index bc907130..be6256bc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -329,6 +329,8 @@ pub enum Protocol { } /// A builder for `TlsConnector`s. +/// +/// You can get one from [`TlsConnector::builder()`](TlsConnector::builder) pub struct TlsConnectorBuilder { identity: Option, min_protocol: Option, @@ -517,6 +519,8 @@ impl TlsConnector { } /// A builder for `TlsAcceptor`s. +/// +/// You can get one from [`TlsAcceptor::builder()`](TlsAcceptor::builder) pub struct TlsAcceptorBuilder { identity: Identity, min_protocol: Option, From 3c13df87f62230fe8fafc1b9f6c7c1733d021e94 Mon Sep 17 00:00:00 2001 From: rust1248 <109891485+rust1248@users.noreply.github.com> Date: Mon, 26 Jun 2023 05:09:46 +0000 Subject: [PATCH 2/2] Fix rustfmt errors --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index be6256bc..639b24fe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -329,7 +329,7 @@ pub enum Protocol { } /// A builder for `TlsConnector`s. -/// +/// /// You can get one from [`TlsConnector::builder()`](TlsConnector::builder) pub struct TlsConnectorBuilder { identity: Option, @@ -519,7 +519,7 @@ impl TlsConnector { } /// A builder for `TlsAcceptor`s. -/// +/// /// You can get one from [`TlsAcceptor::builder()`](TlsAcceptor::builder) pub struct TlsAcceptorBuilder { identity: Identity,