diff --git a/src/client/mod.rs b/src/client/mod.rs index 572e0924..386c9249 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -135,6 +135,10 @@ fn with_connector + Send + 'static, S: NetworkStre Connector(Box::new(ConnAdapter(c))) } +impl Default for Client { + fn default() -> Client { Client::new() } +} + struct ConnAdapter(C); impl + Send, S: NetworkStream + Send> NetworkConnector for ConnAdapter { @@ -372,7 +376,7 @@ pub enum RedirectPolicy { FollowIf(fn(&Url) -> bool), } -// This is a hack because of upstream typesystem issues. +// This is a hack because of upstream typesystem issues. impl Clone for RedirectPolicy { fn clone(&self) -> RedirectPolicy { *self