aboutsummaryrefslogtreecommitdiff
path: root/examples/named
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-09-17 13:32:06 +0200
committerHampusM <hampus@hampusmat.com>2023-09-17 13:32:06 +0200
commita1ddd1bc6e1af0d98b87126d3e86da30bc1d3f1c (patch)
treed4a9cfd9e3970a955e27ac518a593f55e8ad8d9c /examples/named
parent3e3a853615e97ee7c3aef09736eae8170c6fd78e (diff)
refactor!: make the blocking DI container not inside a Rc
BREAKING CHANGE: The blocking DI container is no longer inside of a Rc. This affects BindingBuilder, BindingScopeConfigurator, BindingWhenConfigurator & Injectable
Diffstat (limited to 'examples/named')
-rw-r--r--examples/named/bootstrap.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/named/bootstrap.rs b/examples/named/bootstrap.rs
index 5f63b47..f7b66ad 100644
--- a/examples/named/bootstrap.rs
+++ b/examples/named/bootstrap.rs
@@ -1,5 +1,3 @@
-use std::rc::Rc;
-
use anyhow::Result;
use syrette::DIContainer;
@@ -9,7 +7,7 @@ use crate::katana::Katana;
use crate::ninja::Ninja;
use crate::shuriken::Shuriken;
-pub fn bootstrap() -> Result<Rc<DIContainer>>
+pub fn bootstrap() -> Result<DIContainer>
{
let mut di_container = DIContainer::new();