Adding couple of missing commas

This commit is contained in:
Tomasz Drwięga
2016-04-08 10:13:42 +02:00
parent 6395095659
commit f129126a82
4 changed files with 7 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ impl hyper::server::Handler for RestApi {
res.headers_mut().set(header::ContentType("application/json".parse().unwrap()));
let _ = res.send(self.list_pages().as_bytes());
},
_ => ()
_ => (),
}
}
}

View File

@@ -75,14 +75,14 @@ impl Router {
Some(ref host) => {
format!("http://{}:{}{}", host.hostname, host.port.unwrap_or(80), path)
},
None => return None
None => return None,
};
match Url::parse(&url_string) {
Ok(url) => Some(url),
_ => None,
}
}
},
_ => None,
}
}
@@ -103,7 +103,7 @@ impl Router {
},
_ => {
(None, req)
}
},
}
}
}