diff options
author | HampusM <hampus@hampusmat.com> | 2022-08-02 14:31:31 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-08-02 14:31:31 +0200 |
commit | 826592eac2601e9fcd5aabb17482b4816ed7ab88 (patch) | |
tree | 3c3ba5436ca76e0738e4cc8deefef3025fd5d4bd /src/interfaces/injectable.rs | |
parent | 163cd3cedd398f5676edbcb3249dd958d3e97aca (diff) |
feat: add detection and prevention of circular dependencies
Diffstat (limited to 'src/interfaces/injectable.rs')
-rw-r--r-- | src/interfaces/injectable.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interfaces/injectable.rs b/src/interfaces/injectable.rs index 31cd21b..e6e4ced 100644 --- a/src/interfaces/injectable.rs +++ b/src/interfaces/injectable.rs @@ -13,6 +13,7 @@ pub trait Injectable: CastFrom /// Will return `Err` if resolving the dependencies fails. fn resolve( di_container: &DIContainer, + dependency_history: Vec<&'static str>, ) -> error_stack::Result<TransientPtr<Self>, ResolveError> where Self: Sized; |