1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-26 19:47:43 +02: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

View File

@ -13,7 +13,7 @@ impl_more::deref_mut! { Connection<R, IO> => io }
impl<R, IO> Connection<R, IO> {
/// 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 }
}
}