diff options
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; |