mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-25 18:09:22 +02:00
fix examples
This commit is contained in:
@ -39,7 +39,7 @@ fn index(mut req: HttpRequest) -> Box<Future<Item=HttpResponse, Error=Error>>
|
||||
}
|
||||
})
|
||||
.finish() // <- Stream::finish() combinator from actix
|
||||
.map(|_| httpcodes::HTTPOk.response())
|
||||
.map(|_| httpcodes::HTTPOk.into())
|
||||
.responder()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user