1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

convert to 2018 edition

This commit is contained in:
Nikolay Kim
2018-12-06 14:32:52 -08:00
parent c0f8bc9e90
commit e9121025b7
40 changed files with 310 additions and 294 deletions

View File

@ -34,7 +34,9 @@ fn main() {
res.header("x-head", HeaderValue::from_static("dummy value!"));
Ok(res.body(bytes))
})
}).map(|_| ())
}).unwrap()
})
.map(|_| ())
})
.unwrap()
.run();
}

View File

@ -37,6 +37,7 @@ fn main() {
.server_hostname("localhost")
.finish(|_req: Request| handle_request(_req))
.map(|_| ())
}).unwrap()
})
.unwrap()
.run();
}

View File

@ -29,6 +29,7 @@ fn main() {
.map_err(|_| ())
.map(|_| ())
})
}).unwrap()
})
.unwrap()
.run();
}

View File

@ -29,7 +29,9 @@ fn main() {
let mut res = Response::Ok();
res.header("x-head", HeaderValue::from_static("dummy value!"));
future::ok::<_, ()>(res.body("Hello world!"))
}).map(|_| ())
}).unwrap()
})
.map(|_| ())
})
.unwrap()
.run();
}