aboutsummaryrefslogtreecommitdiff
path: root/src/di_container/asynchronous
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-08-16 18:32:20 +0200
committerHampusM <hampus@hampusmat.com>2023-08-16 18:36:34 +0200
commitcc48563f774423fe591911fed413cf3db4ba326e (patch)
tree81fcd79ca6bc52a2d7bee2d6f56dde198422f8a6 /src/di_container/asynchronous
parent096c27c0e5cc3b0f4dbf7dbf7f335acf705b9b6a (diff)
chore!: remove the factory macro async flag
BREAKING CHANGE: The factory macro's async flag has been removed
Diffstat (limited to 'src/di_container/asynchronous')
-rw-r--r--src/di_container/asynchronous/binding/builder.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/di_container/asynchronous/binding/builder.rs b/src/di_container/asynchronous/binding/builder.rs
index 306d196..9fa5115 100644
--- a/src/di_container/asynchronous/binding/builder.rs
+++ b/src/di_container/asynchronous/binding/builder.rs
@@ -238,7 +238,7 @@ where
/// #
/// # impl Foo for Bar {}
/// #
- /// # #[factory(async = true)]
+ /// # #[factory]
/// # type FooFactory = dyn Fn(i32, String) -> BoxFuture<
/// # 'static,
/// # TransientPtr<dyn Foo>
@@ -602,7 +602,7 @@ mod tests
use crate::{self as syrette, factory};
#[rustfmt::skip]
- #[factory(async = true)]
+ #[factory]
type IUserManagerFactory = dyn Fn(String) -> BoxFuture<
'static,
TransientPtr<dyn subjects_async::IUserManager>