1
0
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:
Nikolay Kim
2017-12-31 20:08:35 -08:00
parent cc38b30f7b
commit 8e89ff1d1e
2 changed files with 2 additions and 2 deletions

View File

@ -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()
}