fixes for no-default-features

This commit is contained in:
Martin Algesten
2019-02-03 12:05:27 +05:30
parent aa2508bfcc
commit 22e83fc31c
2 changed files with 3 additions and 1 deletions

View File

@@ -175,6 +175,6 @@ pub(crate) fn connect_test(unit: &Unit) -> Result<Stream, Error> {
}
#[cfg(not(feature = "tls"))]
pub fn connect_https(unit: &Unit) -> Result<Stream, Error> {
pub(crate) fn connect_https(unit: &Unit) -> Result<Stream, Error> {
Err(Error::UnknownScheme(unit.url.scheme().to_string()))
}