Skip to content

Commit

Permalink
fix(client): remove config requirement for Connect
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
daboross committed Jun 2, 2017
1 parent edc1c0d commit 5391d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ impl<C, B> Config<C, B> {

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

0 comments on commit 5391d02

Please sign in to comment.