diff options
author | HampusM <hampus@hampusmat.com> | 2022-10-03 20:23:26 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-10-03 20:45:32 +0200 |
commit | 97c789e38bb8e61389a3808d241689e623144344 (patch) | |
tree | 4cbaee424bfcb1b69a523be9664e48e5264f3d4b /src/di_container.rs | |
parent | 03d3898a05592eb83b7a16609dba46d0b293790e (diff) |
refactor: remove relying on Rust nightly for better handling of features
Diffstat (limited to 'src/di_container.rs')
-rw-r--r-- | src/di_container.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/di_container.rs b/src/di_container.rs index b23cdb1..2ed1e25 100644 --- a/src/di_container.rs +++ b/src/di_container.rs @@ -54,8 +54,6 @@ use std::cell::RefCell; use std::marker::PhantomData; use std::rc::Rc; -use feature_macros::feature_specific; - #[cfg(feature = "factory")] use crate::castable_factory::blocking::CastableFactory; use crate::di_container_binding_map::DIContainerBindingMap; @@ -333,7 +331,8 @@ where /// # Ok(()) /// # } /// ``` - #[feature_specific("factory")] + #[cfg(feature = "factory")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "factory")))] pub fn to_factory<Args, Return, Func>( &self, factory_func: &'static Func, @@ -420,7 +419,8 @@ where /// # Ok(()) /// # } /// ``` - #[feature_specific("factory")] + #[cfg(feature = "factory")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "factory")))] pub fn to_default_factory<Return, FactoryFunc>( &self, factory_func: &'static FactoryFunc, |