Skip to content

Commit

Permalink
fix(proxy): fix the 0.9.x build with `--no-default-features --feature…
Browse files Browse the repository at this point in the history
…s=security-framework`

The build on OS X was broken in this configuration.

Fixes #819
  • Loading branch information
luser committed Jun 6, 2016
1 parent c7a513e commit 6caffe9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub fn tunnel(proxy: (Cow<'static, str>, u16)) -> Proxy<HttpConnector, ::net::Op
}

#[cfg(feature = "security-framework")]
pub fn tunnel(proxy: (Cow<'static, str>, u16)) -> Proxy<HttpConnector, ::net::Openssl> {
pub fn tunnel(proxy: (Cow<'static, str>, u16)) -> Proxy<HttpConnector, ::net::ClientWrapper> {
Proxy {
connector: HttpConnector,
proxy: proxy,
Expand Down
3 changes: 3 additions & 0 deletions src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ use std::mem;
#[cfg(feature = "openssl")]
pub use self::openssl::{Openssl, OpensslClient};

#[cfg(feature = "security-framework")]
pub use self::security_framework::ClientWrapper;

use std::time::Duration;

use typeable::Typeable;
Expand Down

0 comments on commit 6caffe9

Please sign in to comment.