diff options
Diffstat (limited to 'examples/with-3rd-party/bootstrap.rs')
-rw-r--r-- | examples/with-3rd-party/bootstrap.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/with-3rd-party/bootstrap.rs b/examples/with-3rd-party/bootstrap.rs index a4bd84a..c5512c4 100644 --- a/examples/with-3rd-party/bootstrap.rs +++ b/examples/with-3rd-party/bootstrap.rs @@ -5,10 +5,7 @@ use syrette::ptr::TransientPtr; use syrette::{declare_default_factory, DIContainer}; use third_party_lib::Shuriken; -// Interfaces use crate::interfaces::ninja::INinja; -// -// Concrete implementations use crate::ninja::Ninja; declare_default_factory!(Shuriken); @@ -21,7 +18,7 @@ pub fn bootstrap() -> Result<Rc<DIContainer>, Box<dyn Error>> di_container .bind::<Shuriken>() - .to_default_factory(&|| TransientPtr::new(Shuriken::new()))?; + .to_default_factory(&|_| TransientPtr::new(Shuriken::new()))?; Ok(di_container) } |