diff options
author | HampusM <hampus@hampusmat.com> | 2024-07-11 21:00:09 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-07-11 21:00:09 +0200 |
commit | 20d37eb93060e51970d3791c6c173e07ef5ad489 (patch) | |
tree | 0c08e74cacdedfe10273f5db69aeaed06e37a03b /src/di_container/blocking/binding | |
parent | cde9d4b41a4b37612420ac522bc261147966efa5 (diff) |
refactor: rename castable factory to castable function
Diffstat (limited to 'src/di_container/blocking/binding')
-rw-r--r-- | src/di_container/blocking/binding/builder.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/di_container/blocking/binding/builder.rs b/src/di_container/blocking/binding/builder.rs index 9f7f6f9..ead1a54 100644 --- a/src/di_container/blocking/binding/builder.rs +++ b/src/di_container/blocking/binding/builder.rs @@ -181,7 +181,7 @@ where Interface: Fn<Args, Output = crate::ptr::TransientPtr<Return>>, Func: Fn(&DIContainer) -> Box<Interface>, { - use crate::castable_factory::CastableFactory; + use crate::castable_function::CastableFunction; if self .di_container @@ -192,7 +192,7 @@ where >())); } - let factory_impl = CastableFactory::new(factory_func); + let factory_impl = CastableFunction::new(factory_func); self.di_container.set_binding::<Interface>( BindingOptions::new(), @@ -269,7 +269,7 @@ where dyn Fn<(), Output = crate::ptr::TransientPtr<Return>>, >, { - use crate::castable_factory::CastableFactory; + use crate::castable_function::CastableFunction; if self .di_container @@ -280,7 +280,7 @@ where >())); } - let factory_impl = CastableFactory::new(factory_func); + let factory_impl = CastableFunction::new(factory_func); self.di_container.set_binding::<Interface>( BindingOptions::new(), |