diff options
Diffstat (limited to 'examples/async')
| -rw-r--r-- | examples/async/bootstrap.rs | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/examples/async/bootstrap.rs b/examples/async/bootstrap.rs index 51af067..dd2febe 100644 --- a/examples/async/bootstrap.rs +++ b/examples/async/bootstrap.rs @@ -30,9 +30,11 @@ pub async fn bootstrap() -> Result<Arc<AsyncDIContainer>>      di_container          .bind::<dyn ICat>()          .to_default_factory(&|_| { -            let cat: TransientPtr<dyn ICat> = TransientPtr::new(Cat::new()); +            Box::new(|| { +                let cat: TransientPtr<dyn ICat> = TransientPtr::new(Cat::new()); -            cat +                cat +            })          })          .await?; | 
