aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-09-21 19:54:27 +0200
committerHampusM <hampus@hampusmat.com>2022-09-21 19:54:27 +0200
commit7a68649014d5ff215fe2242ebd200916f2e773c9 (patch)
tree60ec47f29d9180fc66cc6238cd893fbec067353d /examples
parent48beddef06d3b3d466c47a27a993b69e894b63e9 (diff)
docs: make IFood in async example Send + Sync
Diffstat (limited to 'examples')
-rw-r--r--examples/async/interfaces/food.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/async/interfaces/food.rs b/examples/async/interfaces/food.rs
index ae5eaef..e85519b 100644
--- a/examples/async/interfaces/food.rs
+++ b/examples/async/interfaces/food.rs
@@ -1,6 +1,6 @@
use syrette::factory;
-pub trait IFood
+pub trait IFood: Send + Sync
{
fn eat(&self);
}