diff options
author | HampusM <hampus@hampusmat.com> | 2023-08-16 18:46:09 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-08-16 18:46:09 +0200 |
commit | 9e1edb7c0e1021a02766bd539c151eefc53ee0ef (patch) | |
tree | daeab4921a991cd3647f9f1be9d27e862c892c8c /src/test_utils.rs | |
parent | cc48563f774423fe591911fed413cf3db4ba326e (diff) |
chore: fix warnings when only the async feature enabled
Diffstat (limited to 'src/test_utils.rs')
-rw-r--r-- | src/test_utils.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test_utils.rs b/src/test_utils.rs index 2bc1671..3d51ffe 100644 --- a/src/test_utils.rs +++ b/src/test_utils.rs @@ -496,7 +496,7 @@ pub mod mocks } } -#[cfg(feature = "async")] +#[cfg(all(feature = "async", feature = "factory"))] macro_rules! async_closure { (|$($args: ident),*| { $($inner: stmt);* }) => { Box::new(|$($args),*| { @@ -510,5 +510,5 @@ macro_rules! async_closure { }; } -#[cfg(feature = "async")] +#[cfg(all(feature = "async", feature = "factory"))] pub(crate) use async_closure; |