From 598c34f45b9f53561d1b53dd11392418136c1dc0 Mon Sep 17 00:00:00 2001 From: Jack Wrenn Date: Tue, 26 Jul 2022 18:24:01 -0400 Subject: [PATCH] subscriber: impl `LookupSpan` for `Box` and `Arc` (#2247) These implementations mirror those provided by tracing-core for `Subscriber` on `Box` and `Arc`. --- tracing-subscriber/src/layer/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tracing-subscriber/src/layer/mod.rs b/tracing-subscriber/src/layer/mod.rs index 24b8533234..5122559ce5 100644 --- a/tracing-subscriber/src/layer/mod.rs +++ b/tracing-subscriber/src/layer/mod.rs @@ -685,7 +685,7 @@ use core::any::TypeId; feature! { #![feature = "alloc"] - use alloc::boxed::Box; + use alloc::{vec::Vec, boxed::Box}; use core::ops::{Deref, DerefMut}; } @@ -1568,8 +1568,6 @@ where feature! { #![any(feature = "std", feature = "alloc")] - #[cfg(not(feature = "std"))] - use alloc::vec::Vec; macro_rules! layer_impl_body { () => {