From 3e624b83764c7f539ce118e3d0cd66da62f143ab Mon Sep 17 00:00:00 2001 From: Babur <31780624+bobs4462@users.noreply.github.com> Date: Sat, 29 Jan 2022 01:09:54 +0300 Subject: [PATCH] Made `new` constructor for the Connection type public (#439) --- actix-tls/src/connect/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-tls/src/connect/connection.rs b/actix-tls/src/connect/connection.rs index 14c8dc00..1abd4eff 100644 --- a/actix-tls/src/connect/connection.rs +++ b/actix-tls/src/connect/connection.rs @@ -13,7 +13,7 @@ impl_more::deref_mut! { Connection => io } impl Connection { /// Construct new `Connection` from request and IO parts. - pub(crate) fn new(req: R, io: IO) -> Self { + pub fn new(req: R, io: IO) -> Self { Self { req, io } } }