Skip to content

Commit

Permalink
Fix clippy: allow deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Folyd committed Apr 1, 2021
1 parent 62c97c8 commit 5bcbb3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tracing-subscriber/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ pub struct CurrentSpan {
current: thread::Local<Vec<Id>>,
}

#[allow(deprecated)]
impl CurrentSpan {
/// Returns a new `CurrentSpan`.
pub fn new() -> Self {
Expand Down Expand Up @@ -195,6 +196,7 @@ impl CurrentSpan {
}
}

#[allow(deprecated)]
impl Default for CurrentSpan {
fn default() -> Self {
Self::new()
Expand Down

0 comments on commit 5bcbb3c

Please sign in to comment.