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:
parent
26446fdbad
commit
3e624b8376
@ -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 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user