1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-09-02 01:31:57 +02:00

more tests

This commit is contained in:
Nikolay Kim
2017-10-22 17:33:24 -07:00
parent 26989f5591
commit 5699af9795
10 changed files with 173 additions and 9 deletions

View File

@@ -46,7 +46,7 @@ impl<T, A, H> HttpServer<T, A, H> where H: HttpHandler
{
/// Create new http server with vec of http handlers
pub fn new<U: IntoIterator<Item=H>>(handler: U) -> Self {
let apps: Vec<_> = handler.into_iter().map(|h| h.into()).collect();
let apps: Vec<_> = handler.into_iter().collect();
HttpServer {h: Rc::new(apps),
io: PhantomData,