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"))] #[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())) Err(Error::UnknownScheme(unit.url.scheme().to_string()))
} }

View File

@@ -3,6 +3,7 @@ use std::io::Read;
use super::super::*; use super::super::*;
#[test] #[test]
#[cfg(feature = "tls")]
fn read_range() { fn read_range() {
let resp = get("https://s3.amazonaws.com/foosrvr/bbb.mp4") let resp = get("https://s3.amazonaws.com/foosrvr/bbb.mp4")
.set("Range", "bytes=1000-1999") .set("Range", "bytes=1000-1999")
@@ -19,6 +20,7 @@ fn read_range() {
} }
#[test] #[test]
#[cfg(feature = "tls")]
fn agent_pool() { fn agent_pool() {
let agent = agent(); let agent = agent();