aboutsummaryrefslogtreecommitdiff
path: root/examples/named
diff options
context:
space:
mode:
Diffstat (limited to 'examples/named')
-rw-r--r--examples/named/bootstrap.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/named/bootstrap.rs b/examples/named/bootstrap.rs
index b5fa39d..5f63b47 100644
--- a/examples/named/bootstrap.rs
+++ b/examples/named/bootstrap.rs
@@ -1,3 +1,5 @@
+use std::rc::Rc;
+
use anyhow::Result;
use syrette::DIContainer;
@@ -7,9 +9,9 @@ use crate::katana::Katana;
use crate::ninja::Ninja;
use crate::shuriken::Shuriken;
-pub fn bootstrap() -> Result<DIContainer>
+pub fn bootstrap() -> Result<Rc<DIContainer>>
{
- let mut di_container: DIContainer = DIContainer::new();
+ let mut di_container = DIContainer::new();
di_container
.bind::<dyn IWeapon>()