trace: prepare tokio-trace for release (#1051)

This commit is contained in:
Eliza Weisman
2019-04-22 14:15:07 -07:00
committed by Carl Lerche
parent fea1f780bc
commit 3ebca76a9a
8 changed files with 200 additions and 69 deletions
+3 -3
View File
@@ -8,9 +8,9 @@ pub use tokio_trace_core::subscriber::*;
/// executing, new spans or events are dispatched to the subscriber that
/// tagged that span, instead.
///
/// [`Span`]: ::span::Span
/// [`Subscriber`]: ::Subscriber
/// [`Event`]: ::Event
/// [`Span`]: ../span/struct.Span.html
/// [`Subscriber`]: ../subscriber/trait.Subscriber.html
/// [`Event`]: :../event/struct.Event.html
pub fn with_default<T, S>(subscriber: S, f: impl FnOnce() -> T) -> T
where
S: Subscriber + Send + Sync + 'static,