Skip to content

Commit

Permalink
subscriber: impl LookupSpan for Box<LS> and Arc<LS> (tokio-rs#2247
Browse files Browse the repository at this point in the history
)

These implementations mirror those provided by tracing-core for
`Subscriber` on `Box<S>` and `Arc<S>`.
  • Loading branch information
jswrenn authored and kaffarell committed May 22, 2024
1 parent 766a4c0 commit 598c34f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tracing-subscriber/src/layer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
}

Expand Down Expand Up @@ -1568,8 +1568,6 @@ where

feature! {
#![any(feature = "std", feature = "alloc")]
#[cfg(not(feature = "std"))]
use alloc::vec::Vec;

macro_rules! layer_impl_body {
() => {
Expand Down

0 comments on commit 598c34f

Please sign in to comment.