diff options
author | HampusM <hampus@hampusmat.com> | 2022-08-30 18:53:23 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-08-30 18:53:23 +0200 |
commit | d6f01bd571753dc2e9628418f94f66139438bcb3 (patch) | |
tree | 1ed5492d8abdeb9231d498e9ecf349c7cc1ec3d8 /src/errors/async_di_container.rs | |
parent | 080cc42bb1da09059dbc35049a7ded0649961e0c (diff) |
refactor: replace arc cast panic with an error
Diffstat (limited to 'src/errors/async_di_container.rs')
-rw-r--r-- | src/errors/async_di_container.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/errors/async_di_container.rs b/src/errors/async_di_container.rs index 4f5e50a..bdb6fa0 100644 --- a/src/errors/async_di_container.rs +++ b/src/errors/async_di_container.rs @@ -43,6 +43,10 @@ pub enum AsyncDIContainerError /// The name of the binding if one exists. name: Option<&'static str>, }, + + /// A interface has not been marked async. + #[error("Interface '{0}' has not been marked async")] + InterfaceNotAsync(&'static str), } /// Error type for [`AsyncBindingBuilder`]. |