aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/async_injectable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/async_injectable.rs')
-rw-r--r--src/interfaces/async_injectable.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interfaces/async_injectable.rs b/src/interfaces/async_injectable.rs
index badc3c5..fb5452b 100644
--- a/src/interfaces/async_injectable.rs
+++ b/src/interfaces/async_injectable.rs
@@ -2,6 +2,7 @@
//!
//! *This module is only available if Syrette is built with the "async" feature.*
use std::fmt::Debug;
+use std::sync::Arc;
use async_trait::async_trait;
@@ -19,7 +20,7 @@ pub trait AsyncInjectable: CastFromSync
/// # Errors
/// Will return `Err` if resolving the dependencies fails.
async fn resolve(
- di_container: &AsyncDIContainer,
+ di_container: &Arc<AsyncDIContainer>,
dependency_history: Vec<&'static str>,
) -> Result<TransientPtr<Self>, InjectableError>
where