mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
remove Send
trait requirement from the Resource
trait (#4585)
This commit is contained in:
parent
6204555be3
commit
d8f32c7eff
1 changed files with 2 additions and 2 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Reference in a new issue