diff options
Diffstat (limited to 'src/errors')
-rw-r--r-- | src/errors/async_di_container.rs | 4 | ||||
-rw-r--r-- | src/errors/mod.rs | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/errors/async_di_container.rs b/src/errors/async_di_container.rs index 22d8fdd..8697bc6 100644 --- a/src/errors/async_di_container.rs +++ b/src/errors/async_di_container.rs @@ -1,9 +1,5 @@ //! Error types for [`AsyncDIContainer`] and it's related structs. //! -//! --- -//! -//! *This module is only available if Syrette is built with the "async" feature.* -//! //! [`AsyncDIContainer`]: crate::async_di_container::AsyncDIContainer use crate::errors::injectable::InjectableError; diff --git a/src/errors/mod.rs b/src/errors/mod.rs index c3930b0..a1eb551 100644 --- a/src/errors/mod.rs +++ b/src/errors/mod.rs @@ -1,8 +1,10 @@ //! Error types for various components of the library. +use feature_macros::feature_specific; + pub mod di_container; pub mod injectable; pub mod ptr; -#[cfg(feature = "async")] +#[feature_specific("async")] pub mod async_di_container; |