diff options
Diffstat (limited to 'examples/basic')
-rw-r--r-- | examples/basic/bootstrap.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/basic/bootstrap.rs b/examples/basic/bootstrap.rs index 2c45676..95632f2 100644 --- a/examples/basic/bootstrap.rs +++ b/examples/basic/bootstrap.rs @@ -1,5 +1,4 @@ use std::error::Error; -use std::rc::Rc; use syrette::DIContainer; @@ -10,7 +9,7 @@ use crate::interfaces::cat::ICat; use crate::interfaces::dog::IDog; use crate::interfaces::human::IHuman; -pub fn bootstrap() -> Result<Rc<DIContainer>, Box<dyn Error>> +pub fn bootstrap() -> Result<DIContainer, Box<dyn Error>> { let mut di_container = DIContainer::new(); |