test(client): remove warning about disabled tests

This commit is contained in:
Sean McArthur
2019-09-11 14:55:14 -07:00
parent 6842c44a43
commit d46cde1216
3 changed files with 4 additions and 6 deletions

View File

@@ -180,6 +180,7 @@ impl<T: Poolable> Pool<T> {
.expect("lock")
}
/* Used in client/tests.rs...
#[cfg(feature = "runtime")]
#[cfg(test)]
pub(super) fn h1_key(&self, s: &str) -> Key {
@@ -196,6 +197,7 @@ impl<T: Poolable> Pool<T> {
.map(|list| list.len())
.unwrap_or(0)
}
*/
pub(super) fn pooled(&self, mut connecting: Connecting<T>, value: T) -> Pooled<T> {
let (value, pool_ref) = if let Some(ref enabled) = self.inner {