diff options
author | HampusM <hampus@hampusmat.com> | 2022-09-21 19:54:27 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-09-21 19:54:27 +0200 |
commit | 7a68649014d5ff215fe2242ebd200916f2e773c9 (patch) | |
tree | 60ec47f29d9180fc66cc6238cd893fbec067353d /examples/async | |
parent | 48beddef06d3b3d466c47a27a993b69e894b63e9 (diff) |
docs: make IFood in async example Send + Sync
Diffstat (limited to 'examples/async')
-rw-r--r-- | examples/async/interfaces/food.rs | 2 |
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); } |