Skip to content

Commit

Permalink
subscriber: make Layer impls for Box<dyn Layer<..>> Send+Sync (#…
Browse files Browse the repository at this point in the history
…1547)

And for Arc

 This is a fixup for #1536.
  • Loading branch information
davidbarsky committed Sep 13, 2021
1 parent f6ec3d4 commit 92ca4a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracing-subscriber/src/subscribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ where
subscriber_impl_body! {}
}

impl<C> Subscribe<C> for Arc<dyn Subscribe<C>>
impl<C> Subscribe<C> for Arc<dyn Subscribe<C> + Send + Sync>
where
C: Collect,
{
Expand All @@ -972,7 +972,7 @@ where
subscriber_impl_body! {}
}

impl<C> Subscribe<C> for Box<dyn Subscribe<C>>
impl<C> Subscribe<C> for Box<dyn Subscribe<C> + Send + Sync>
where
C: Collect,
{
Expand Down

0 comments on commit 92ca4a1

Please sign in to comment.