mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
Merge pull request #134 from programble/bug/hyper-0.7.0
Depend on hyper 0.7.0
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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(())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user