aboutsummaryrefslogtreecommitdiff
path: root/src/di_container/asynchronous/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/di_container/asynchronous/mod.rs')
-rw-r--r--src/di_container/asynchronous/mod.rs27
1 files changed, 20 insertions, 7 deletions
diff --git a/src/di_container/asynchronous/mod.rs b/src/di_container/asynchronous/mod.rs
index 7dda1d7..89b2fba 100644
--- a/src/di_container/asynchronous/mod.rs
+++ b/src/di_container/asynchronous/mod.rs
@@ -270,7 +270,12 @@ impl AsyncDIContainer
>(
))
}
- CastError::CastFailed { from: _, to: _ } => {
+ CastError::CastFailed {
+ source: _,
+ from: _,
+ to: _,
+ }
+ | CastError::GetCasterFailed(_) => {
AsyncDIContainerError::CastFailed {
interface: type_name::<Interface>(),
binding_kind: "singleton",
@@ -291,7 +296,12 @@ impl AsyncDIContainer
type_name::<Interface>(),
)
}
- CastError::CastFailed { from: _, to: _ } => {
+ CastError::CastFailed {
+ source: _,
+ from: _,
+ to: _,
+ }
+ | CastError::GetCasterFailed(_) => {
AsyncDIContainerError::CastFailed {
interface: type_name::<Interface>(),
binding_kind: "factory",
@@ -348,12 +358,15 @@ impl AsyncDIContainer
CastError::NotArcCastable(_) => {
AsyncDIContainerError::InterfaceNotAsync(type_name::<Type>())
}
- CastError::CastFailed { from: _, to: _ } => {
- AsyncDIContainerError::CastFailed {
- interface: type_name::<Type>(),
- binding_kind,
- }
+ CastError::CastFailed {
+ source: _,
+ from: _,
+ to: _,
}
+ | CastError::GetCasterFailed(_) => AsyncDIContainerError::CastFailed {
+ interface: type_name::<Type>(),
+ binding_kind,
+ },
})
}