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

added StaticFiles basic impl

This commit is contained in:
Nikolay Kim
2017-10-16 01:19:23 -07:00
parent fa6bc35dbd
commit ba1a73443e
8 changed files with 186 additions and 14 deletions

View File

@@ -34,7 +34,7 @@ impl HttpServer {
{
let mut err = None;
let mut addrs = Vec::new();
for iter in addr.to_socket_addrs() {
if let Ok(iter) = addr.to_socket_addrs() {
for addr in iter {
match TcpListener::bind(&addr, Arbiter::handle()) {
Ok(tcp) => addrs.push(tcp),