mirror of https://github.com/fafhrd91/actix-net
fix feature guard in tests
This commit is contained in:
parent
dcc1a6776e
commit
4d683b0624
|
@ -1,6 +1,11 @@
|
||||||
//! Use Rustls connector to test OpenSSL acceptor.
|
//! Use Rustls connector to test OpenSSL acceptor.
|
||||||
|
|
||||||
#![cfg(all(feature = "accept", feature = "rustls", feature = "openssl"))]
|
#![cfg(all(
|
||||||
|
feature = "accept",
|
||||||
|
feature = "connect",
|
||||||
|
feature = "rustls",
|
||||||
|
feature = "openssl"
|
||||||
|
))]
|
||||||
|
|
||||||
use std::{convert::TryFrom, io::Write, sync::Arc};
|
use std::{convert::TryFrom, io::Write, sync::Arc};
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
//! Use OpenSSL connector to test Rustls acceptor.
|
//! Use OpenSSL connector to test Rustls acceptor.
|
||||||
|
|
||||||
#![cfg(all(feature = "accept", feature = "rustls", feature = "openssl"))]
|
#![cfg(all(
|
||||||
|
feature = "accept",
|
||||||
|
feature = "connect",
|
||||||
|
feature = "rustls",
|
||||||
|
feature = "openssl"
|
||||||
|
))]
|
||||||
|
|
||||||
use std::io::{BufReader, Write};
|
use std::io::{BufReader, Write};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue