From 92ca4a1f4fd4985d0a1c7101045f7e715c7a6b54 Mon Sep 17 00:00:00 2001 From: David Barsky Date: Mon, 13 Sep 2021 17:11:04 -0400 Subject: [PATCH] subscriber: make `Layer` impls for ` Box>` `Send+Sync` (#1547) And for Arc This is a fixup for https://github.com/tokio-rs/tracing/pull/1536. --- tracing-subscriber/src/subscribe.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracing-subscriber/src/subscribe.rs b/tracing-subscriber/src/subscribe.rs index 6e4bb21dc0..a195ba6b51 100644 --- a/tracing-subscriber/src/subscribe.rs +++ b/tracing-subscriber/src/subscribe.rs @@ -957,7 +957,7 @@ where subscriber_impl_body! {} } -impl Subscribe for Arc> +impl Subscribe for Arc + Send + Sync> where C: Collect, { @@ -972,7 +972,7 @@ where subscriber_impl_body! {} } -impl Subscribe for Box> +impl Subscribe for Box + Send + Sync> where C: Collect, {