Add optional native-tls support, clear up warnings for flag configurations

This commit is contained in:
k3d3
2020-04-13 22:03:53 -04:00
committed by Martin Algesten
parent 8a05241eac
commit 9f7f712dde
8 changed files with 65 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
#[cfg(all(test, any(feature = "tls", feature = "native-tls")))]
use std::io::Read;
#[cfg(feature = "tls")]
#[test]
#[cfg(all(test, any(feature = "tls", feature = "native-tls")))]
fn tls_connection_close() {
let agent = ureq::Agent::default().build();
let resp = agent