From 20d37eb93060e51970d3791c6c173e07ef5ad489 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 11 Jul 2024 21:00:09 +0200 Subject: refactor: rename castable factory to castable function --- src/di_container/asynchronous/binding/builder.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/di_container/asynchronous/binding') diff --git a/src/di_container/asynchronous/binding/builder.rs b/src/di_container/asynchronous/binding/builder.rs index f42e6a1..8465c9a 100644 --- a/src/di_container/asynchronous/binding/builder.rs +++ b/src/di_container/asynchronous/binding/builder.rs @@ -173,7 +173,7 @@ where Interface: Fn + Send + Sync, FactoryFunc: Fn(&AsyncDIContainer) -> BoxFn + Send + Sync, { - use crate::castable_factory::threadsafe::ThreadsafeCastableFactory; + use crate::castable_function::threadsafe::ThreadsafeCastableFunction; use crate::provider::r#async::AsyncFactoryVariant; if self @@ -186,7 +186,7 @@ where ))); } - let factory_impl = ThreadsafeCastableFactory::new(factory_func); + let factory_impl = ThreadsafeCastableFunction::new(factory_func); self.di_container.set_binding::( BindingOptions::new(), @@ -270,7 +270,7 @@ where + Send + Sync, { - use crate::castable_factory::threadsafe::ThreadsafeCastableFactory; + use crate::castable_function::threadsafe::ThreadsafeCastableFunction; use crate::provider::r#async::AsyncFactoryVariant; if self @@ -283,7 +283,7 @@ where ))); } - let factory_impl = ThreadsafeCastableFactory::new(factory_func); + let factory_impl = ThreadsafeCastableFunction::new(factory_func); self.di_container.set_binding::( BindingOptions::new(), @@ -354,7 +354,7 @@ where + Send + Sync, { - use crate::castable_factory::threadsafe::ThreadsafeCastableFactory; + use crate::castable_function::threadsafe::ThreadsafeCastableFunction; use crate::provider::r#async::AsyncFactoryVariant; if self @@ -367,7 +367,7 @@ where ))); } - let factory_impl = ThreadsafeCastableFactory::new(factory_func); + let factory_impl = ThreadsafeCastableFunction::new(factory_func); self.di_container.set_binding::( BindingOptions::new(), @@ -445,7 +445,7 @@ where + Send + Sync, { - use crate::castable_factory::threadsafe::ThreadsafeCastableFactory; + use crate::castable_function::threadsafe::ThreadsafeCastableFunction; use crate::provider::r#async::AsyncFactoryVariant; if self @@ -458,7 +458,7 @@ where ))); } - let factory_impl = ThreadsafeCastableFactory::new(factory_func); + let factory_impl = ThreadsafeCastableFunction::new(factory_func); self.di_container.set_binding::( BindingOptions::new(), -- cgit v1.2.3-18-g5258