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:
		| @@ -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, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user