aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/async/animals/cat.rs2
-rw-r--r--examples/async/animals/dog.rs2
-rw-r--r--examples/async/animals/human.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/async/animals/cat.rs b/examples/async/animals/cat.rs
index b1e6f27..7062929 100644
--- a/examples/async/animals/cat.rs
+++ b/examples/async/animals/cat.rs
@@ -4,7 +4,7 @@ use crate::interfaces::cat::ICat;
pub struct Cat {}
-#[injectable(ICat, { async = true })]
+#[injectable(ICat, async = true)]
impl Cat
{
pub fn new() -> Self
diff --git a/examples/async/animals/dog.rs b/examples/async/animals/dog.rs
index d1b33f9..6a4e82b 100644
--- a/examples/async/animals/dog.rs
+++ b/examples/async/animals/dog.rs
@@ -4,7 +4,7 @@ use crate::interfaces::dog::IDog;
pub struct Dog {}
-#[injectable(IDog, { async = true })]
+#[injectable(IDog, async = true)]
impl Dog
{
pub fn new() -> Self
diff --git a/examples/async/animals/human.rs b/examples/async/animals/human.rs
index 140f27c..fc98ed8 100644
--- a/examples/async/animals/human.rs
+++ b/examples/async/animals/human.rs
@@ -11,7 +11,7 @@ pub struct Human
cat: TransientPtr<dyn ICat>,
}
-#[injectable(IHuman, { async = true })]
+#[injectable(IHuman, async = true)]
impl Human
{
pub fn new(dog: ThreadsafeSingletonPtr<dyn IDog>, cat: TransientPtr<dyn ICat>)