refactor(lib): Use cfg(all(...)) instead of multiple cfg attributes

This commit is contained in:
Jonas Platte
2021-01-12 00:11:51 +01:00
committed by Sean McArthur
parent 2c8121f173
commit 9dff00425d
9 changed files with 30 additions and 52 deletions

View File

@@ -52,8 +52,7 @@
pub use self::connect::HttpConnector;
pub mod connect;
#[cfg(test)]
#[cfg(feature = "runtime")]
#[cfg(all(test, feature = "runtime"))]
mod tests;
cfg_feature! {