diff --git a/tracing-core/src/dispatcher.rs b/tracing-core/src/dispatcher.rs index d37f5fb387..440228ff88 100644 --- a/tracing-core/src/dispatcher.rs +++ b/tracing-core/src/dispatcher.rs @@ -113,8 +113,9 @@ //! //!
//!
-//! Note:the thread-local scoped dispatcher with_default
-//! requires the Rust standard library. no_std users should use
+//! Note:the thread-local scoped dispatcher
+//! (with_default) requires the
+//! Rust standard library. no_std users should use
 //! set_global_default
 //! instead.
 //! 
@@ -559,7 +560,7 @@ impl Dispatch { /// Deprecated: The try_close /// method is functionally identical, but returns true if the span is now closed. /// It should be used instead of this method. - /// + /// /// /// [span ID]: ../span/struct.Id.html /// [`Subscriber`]: ../subscriber/trait.Subscriber.html diff --git a/tracing-core/src/field.rs b/tracing-core/src/field.rs index 7ead482cdc..aa279eea10 100644 --- a/tracing-core/src/field.rs +++ b/tracing-core/src/field.rs @@ -175,7 +175,7 @@ pub struct Iter { ///
///
 /// Note: The record_error trait method is only
-/// available when the Rust standard library is present, as it requires the `
+/// available when the Rust standard library is present, as it requires the
 /// std::error::Error trait.
 /// 
/// @@ -213,7 +213,6 @@ pub trait Visit { ///
Note
/// ///
- ///
///
     /// Note: This is only enabled when the Rust standard library is
     /// present.
@@ -622,7 +621,6 @@ impl FieldSet {
     ///     
Note
///
///
- ///
///
     /// Note: If field shares a name with a field
     /// in this FieldSet, but was created by a FieldSet
@@ -630,8 +628,7 @@ impl FieldSet {
     /// contain it. This is so that if two separate span callsites define a field
     /// named "foo", the Field corresponding to "foo" for each
     /// of those callsites are not equivalent.
-    /// 
- ///
+ ///
pub fn contains(&self, field: &Field) -> bool { field.callsite() == self.callsite() && field.i <= self.len() } diff --git a/tracing-core/src/span.rs b/tracing-core/src/span.rs index 517233b403..6dfc41dca6 100644 --- a/tracing-core/src/span.rs +++ b/tracing-core/src/span.rs @@ -64,7 +64,6 @@ impl Id { ///
Note
///
///
- ///
///
     /// Note: Span IDs must be greater than zero.
/// diff --git a/tracing-subscriber/src/layer.rs b/tracing-subscriber/src/layer.rs index 05609f68ca..2b624b1ceb 100644 --- a/tracing-subscriber/src/layer.rs +++ b/tracing-subscriber/src/layer.rs @@ -216,7 +216,6 @@ where ///
Note
///
///
- ///
///
     /// Note: This method (and 
     /// Layer::enabled) determine whether a span or event is
@@ -229,7 +228,7 @@ where
     /// on_enter,
     /// on_exit, and other notification
     /// methods.
-    /// 
+ ///
/// /// See [the trait-level documentation] for more information on filtering /// with `Layer`s. @@ -269,7 +268,6 @@ where ///
Note
///
///
- ///
///
     /// Note: This method (and 
     /// Layer::register_callsite) determine whether a span or event is
@@ -282,7 +280,7 @@ where
     /// on_enter,
     /// on_exit, and other notification
     /// methods.
-    /// 
+ ///
/// /// /// See [the trait-level documentation] for more information on filtering @@ -874,13 +872,12 @@ impl<'a, S: Subscriber> Context<'a, S> { ///
Note
///
///
- ///
///
     /// Note: This requires the wrapped subscriber to implement the
     /// LookupSpan trait.
     /// Layer implementations that wish to use this
     /// function can bound their Subscriber type parameter with:
-    /// 
+ ///
/// ```rust,ignore /// where S: Subscriber + for<'a> LookupSpan<'a>,` /// ``` @@ -904,13 +901,12 @@ impl<'a, S: Subscriber> Context<'a, S> { ///
Note
///
///
- ///
///
     /// Note: This requires the wrapped subscriber to implement the
     /// LookupSpan trait.
     /// Layer implementations that wish to use this
     /// function can bound their Subscriber type parameter with:
-    /// 
+ ///
/// ```rust,ignore /// where S: Subscriber + for<'a> LookupSpan<'a>,` /// ``` @@ -933,13 +929,12 @@ impl<'a, S: Subscriber> Context<'a, S> { ///
Note
///
///
- ///
///
     /// Note: This requires the wrapped subscriber to implement the
     /// LookupSpan trait.
     /// Layer implementations that wish to use this
     /// function can bound their Subscriber type parameter with:
-    /// 
+ ///
/// ```rust,ignore /// where S: Subscriber + for<'a> LookupSpan<'a>,` /// ``` @@ -964,13 +959,12 @@ impl<'a, S: Subscriber> Context<'a, S> { ///
Note
///
///
- ///
///
     /// Note: This requires the wrapped subscriber to implement the
     /// LookupSpan trait.
     /// Layer implementations that wish to use this
     /// function can bound their Subscriber type parameter with:
-    /// 
+ ///
/// ```rust,ignore /// where S: Subscriber + for<'a> LookupSpan<'a>,` /// ``` @@ -1006,13 +1000,12 @@ impl<'a, S: Subscriber> Context<'a, S> { ///
Note
///
///
- ///
///
     /// Note: This requires the wrapped subscriber to implement the
     /// LookupSpan trait.
     /// Layer implementations that wish to use this
     /// function can bound their Subscriber type parameter with:
-    /// 
+ ///
/// ```rust,ignore /// where S: Subscriber + for<'a> LookupSpan<'a>,` /// ``` diff --git a/tracing-subscriber/src/registry/mod.rs b/tracing-subscriber/src/registry/mod.rs index 4eae69ba0b..faae7558bd 100644 --- a/tracing-subscriber/src/registry/mod.rs +++ b/tracing-subscriber/src/registry/mod.rs @@ -98,14 +98,13 @@ pub trait LookupSpan<'a> { ///
Note
///
///