Merge pull request #134 from programble/bug/hyper-0.7.0

Depend on hyper 0.7.0
This commit is contained in:
Sebastian Thiel
2015-11-30 08:32:33 +01:00
2 changed files with 9 additions and 1 deletions

View File

@@ -26,7 +26,7 @@ name = "${util.program_name()}"
% endif
[dependencies]
hyper = ">= 0.6.8"
hyper = "0.7.0"
## Must match the one hyper uses, otherwise there are duplicate similarly named `Mime` structs
mime = "0.1.0"
serde = ">= 0.6.0"

View File

@@ -112,6 +112,14 @@ impl hyper::net::NetworkStream for DummyNetworkStream {
fn peer_addr(&mut self) -> io::Result<std::net::SocketAddr> {
Ok("127.0.0.1:1337".parse().unwrap())
}
fn set_read_timeout(&self, _dur: Option<std::time::Duration>) -> io::Result<()> {
Ok(())
}
fn set_write_timeout(&self, _dur: Option<std::time::Duration>) -> io::Result<()> {
Ok(())
}
}