mirror of https://github.com/fafhrd91/actix-net
Made `new` constructor for the Connection public
This commit is contained in:
parent
b7b7bd2cbf
commit
448ef6f932
|
@ -14,7 +14,7 @@ pub struct Connection<R, 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