Fix for hyper interface change

This commit is contained in:
Ignotus Peverell 2017-04-05 23:28:53 -07:00
parent afb219ce5c
commit f16c4ac59b
No known key found for this signature in database
GPG key ID: 99CD25F39F8F8211

View file

@ -181,7 +181,7 @@ pub fn gist_seeds(h: reactor::Handle) -> Box<Future<Item = Vec<SocketAddr>, Erro
client.get(url)
.map_err(|e| e.to_string())
.and_then(|res| {
if *res.status() != hyper::Ok {
if res.status() != hyper::Ok {
return Err(format!("Gist request failed: {}", res.status()));
}
Ok(res)