diff options
author | Andy Finch <andyfinch7@gmail.com> | 2020-04-03 10:35:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-03 10:35:28 -0400 |
commit | d8f32c7eff02fb62250e06c1bb1eda95b86a52a7 (patch) | |
tree | 9846a961bb40adce5663257ebb8724309bdc584f | |
parent | 6204555be3feaf5171dfb1bba15203ef2bb33265 (diff) |
remove `Send` trait requirement from the `Resource` trait (#4585)
-rw-r--r-- | core/resources.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/resources.rs b/core/resources.rs index 53b1c84bf..c9144f3b2 100644 --- a/core/resources.rs +++ b/core/resources.rs @@ -80,8 +80,8 @@ impl ResourceTable { /// The only thing it does is implementing `Downcast` trait /// that allows to cast resource to concrete type in `TableResource::get` /// and `TableResource::get_mut` methods. -pub trait Resource: Downcast + Any + Send {} -impl<T> Resource for T where T: Downcast + Any + Send {} +pub trait Resource: Downcast + Any {} +impl<T> Resource for T where T: Downcast + Any {} impl_downcast!(Resource); #[cfg(test)] |