Skip to content

Commit

Permalink
fix lifetimes in log support code
Browse files Browse the repository at this point in the history
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
  • Loading branch information
hawkw committed Apr 19, 2022
1 parent 251f013 commit a9893a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracing/src/lib.rs
Expand Up @@ -998,7 +998,7 @@ pub mod __macro_support {
/// without warning.
#[inline]
#[cfg(feature = "log")]
pub fn __disabled_span(meta: &Metadata<'static>) -> crate::Span {
pub fn __disabled_span(meta: &'static Metadata<'static>) -> crate::Span {
crate::Span::new_disabled(meta)
}

Expand All @@ -1010,7 +1010,7 @@ pub mod __macro_support {
/// without warning.
#[inline]
#[cfg(not(feature = "log"))]
pub fn __disabled_span(_: &Metadata<'static>) -> crate::Span {
pub fn __disabled_span(_: &'static Metadata<'static>) -> crate::Span {
crate::Span::none()
}

Expand Down

0 comments on commit a9893a6

Please sign in to comment.