mirror of https://github.com/fafhrd91/actix-net
make new public
This commit is contained in:
parent
f689f6500a
commit
cb1ea341c3
src/service
|
@ -85,7 +85,7 @@ where
|
||||||
F: Fn(Req) -> Fut + Clone,
|
F: Fn(Req) -> Fut + Clone,
|
||||||
Fut: IntoFuture<Item = Resp, Error = Err>,
|
Fut: IntoFuture<Item = Resp, Error = Err>,
|
||||||
{
|
{
|
||||||
fn new(f: F) -> Self {
|
pub fn new(f: F) -> Self {
|
||||||
FnNewService {
|
FnNewService {
|
||||||
f,
|
f,
|
||||||
req: marker::PhantomData,
|
req: marker::PhantomData,
|
||||||
|
|
Loading…
Reference in New Issue