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.
This commit is contained in:
David Ross
2017-06-01 23:34:52 -07:00
parent edc1c0dd01
commit 5391d02c10

View File

@@ -322,7 +322,7 @@ impl<C, B> Config<C, B> {
/// Set the `Connect` type to be used. /// Set the `Connect` type to be used.
#[inline] #[inline]
pub fn connector<CC: Connect>(self, val: CC) -> Config<CC, B> { pub fn connector<CC>(self, val: CC) -> Config<CC, B> {
Config { Config {
_body_type: self._body_type, _body_type: self._body_type,
//connect_timeout: self.connect_timeout, //connect_timeout: self.connect_timeout,