From 5391d02c1075aa2adbc653bf5832a914d4d3c81b Mon Sep 17 00:00:00 2001 From: David Ross Date: Thu, 1 Jun 2017 23:34:52 -0700 Subject: [PATCH] fix(client): remove config requirement for Connect Remove requirement when calling client::Config::connector() that the connector implements Connect. Removing this requirement allows users to set the connector back to UseDefaultConnector. Previously, this was not possible. --- src/client/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/mod.rs b/src/client/mod.rs index 1f217a7389..cad107edaa 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -322,7 +322,7 @@ impl Config { /// Set the `Connect` type to be used. #[inline] - pub fn connector(self, val: CC) -> Config { + pub fn connector(self, val: CC) -> Config { Config { _body_type: self._body_type, //connect_timeout: self.connect_timeout,