From 50aa448fd7befc9b5edeeeedec2d0a5474f20cf9 Mon Sep 17 00:00:00 2001 From: asonix Date: Sun, 12 May 2024 17:14:16 -0500 Subject: [PATCH] Update comments to mention 0.23 instead of 0.22 --- actix-http/src/h1/service.rs | 2 +- actix-http/src/h2/service.rs | 2 +- actix-http/src/service.rs | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/actix-http/src/h1/service.rs b/actix-http/src/h1/service.rs index 91f81a5f0..f2f8a0e48 100644 --- a/actix-http/src/h1/service.rs +++ b/actix-http/src/h1/service.rs @@ -371,7 +371,7 @@ mod rustls_0_23 { U::Error: fmt::Display + Into>, U::InitError: fmt::Debug, { - /// Create Rustls v0.22 based service. + /// Create Rustls v0.23 based service. pub fn rustls_0_23( self, config: ServerConfig, diff --git a/actix-http/src/h2/service.rs b/actix-http/src/h2/service.rs index e4ebe6f81..636ac3161 100644 --- a/actix-http/src/h2/service.rs +++ b/actix-http/src/h2/service.rs @@ -315,7 +315,7 @@ mod rustls_0_23 { B: MessageBody + 'static, { - /// Create Rustls v0.22 based service. + /// Create Rustls v0.23 based service. pub fn rustls_0_23( self, mut config: ServerConfig, diff --git a/actix-http/src/service.rs b/actix-http/src/service.rs index 8fb0ed530..a58be93c7 100644 --- a/actix-http/src/service.rs +++ b/actix-http/src/service.rs @@ -652,7 +652,6 @@ mod rustls_0_22 { } } - #[cfg(feature = "rustls-0_23")] mod rustls_0_23 { use std::io; @@ -690,7 +689,7 @@ mod rustls_0_23 { U::Error: fmt::Display + Into>, U::InitError: fmt::Debug, { - /// Create Rustls v0.22 based service. + /// Create Rustls v0.23 based service. pub fn rustls_0_23( self, config: ServerConfig, @@ -704,7 +703,7 @@ mod rustls_0_23 { self.rustls_0_23_with_config(config, TlsAcceptorConfig::default()) } - /// Create Rustls v0.22 based service with custom TLS acceptor configuration. + /// Create Rustls v0.23 based service with custom TLS acceptor configuration. pub fn rustls_0_23_with_config( self, mut config: ServerConfig,