1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-27 16:52:58 +01:00

Made new constructor for the Connection type public (#439)

This commit is contained in:
Babur 2022-01-29 01:09:54 +03:00 committed by GitHub
parent 26446fdbad
commit 3e624b8376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ impl_more::deref_mut! { Connection<R, IO> => io }
impl<R, IO> Connection<R, IO> { impl<R, IO> Connection<R, IO> {
/// Construct new `Connection` from request and IO parts. /// 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 } Self { req, io }
} }
} }