Skip to content

Commit 28b3ce7

Browse files
authored
chore: fix clippy lints (#3031)
1.80 had a bunch of indentation-related Clippy lints; fixing them.
1 parent 44861ca commit 28b3ce7

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

tracing-appender/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
//! - Using a [`RollingFileAppender`] to perform writes to a log file. This will block on writes.
2525
//! - Using *any* type implementing [`std::io::Write`][write] in a non-blocking fashion.
2626
//! - Using a combination of [`NonBlocking`] and [`RollingFileAppender`] to allow writes to a log file
27-
//! without blocking.
27+
//! without blocking.
2828
//!
2929
//! ## File Appender
3030
//!

tracing-appender/src/rolling.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
//! The following helpers are available for creating a rolling file appender.
1111
//!
1212
//! - [`Rotation::minutely()`][minutely]: A new log file in the format of `some_directory/log_file_name_prefix.yyyy-MM-dd-HH-mm`
13-
//! will be created minutely (once per minute)
13+
//! will be created minutely (once per minute)
1414
//! - [`Rotation::hourly()`][hourly]: A new log file in the format of `some_directory/log_file_name_prefix.yyyy-MM-dd-HH`
15-
//! will be created hourly
15+
//! will be created hourly
1616
//! - [`Rotation::daily()`][daily]: A new log file in the format of `some_directory/log_file_name_prefix.yyyy-MM-dd`
17-
//! will be created daily
17+
//! will be created daily
1818
//! - [`Rotation::never()`][never()]: This will result in log file located at `some_directory/log_file_name`
1919
//!
2020
//!

tracing-error/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
//!
2727
//! - `traced-error` - Enables the [`TracedError`] type and related Traits
2828
//! - [`InstrumentResult`] and [`InstrumentError`] extension traits, which
29-
//! provide an [`in_current_span()`] method for bundling errors with a
30-
//! [`SpanTrace`].
29+
//! provide an [`in_current_span()`] method for bundling errors with a
30+
//! [`SpanTrace`].
3131
//! - [`ExtractSpanTrace`] extension trait, for extracting `SpanTrace`s from
32-
//! behind `dyn Error` trait objects.
32+
//! behind `dyn Error` trait objects.
3333
//!
3434
//! ## Usage
3535
//!

tracing-subscriber/src/subscribe/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@
573573
//! the [`INFO`] [level] and above.
574574
//! - A third subscriber, `subscriber_c`, which should receive spans and events at
575575
//! the [`DEBUG`] [level] as well.
576+
//!
576577
//! The subscribers and filters would be composed thusly:
577578
//!
578579
//! ```

tracing/src/macros.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -1115,15 +1115,15 @@ macro_rules! span_enabled {
11151115
/// in false positives or false negatives include:
11161116
///
11171117
/// - If a collector is using a filter which may enable a span or event based
1118-
/// on field names, but `enabled!` is invoked without listing field names,
1119-
/// `enabled!` may return a false negative if a specific field name would
1120-
/// cause the collector to enable something that would otherwise be disabled.
1118+
/// on field names, but `enabled!` is invoked without listing field names,
1119+
/// `enabled!` may return a false negative if a specific field name would
1120+
/// cause the collector to enable something that would otherwise be disabled.
11211121
/// - If a collector is using a filter which enables or disables specific events by
1122-
/// file path and line number, a particular event may be enabled/disabled
1123-
/// even if an `enabled!` invocation with the same level, target, and fields
1124-
/// indicated otherwise.
1122+
/// file path and line number, a particular event may be enabled/disabled
1123+
/// even if an `enabled!` invocation with the same level, target, and fields
1124+
/// indicated otherwise.
11251125
/// - The collector can choose to enable _only_ spans or _only_ events, which `enabled`
1126-
/// will not reflect.
1126+
/// will not reflect.
11271127
///
11281128
/// `enabled!()` requires a [level](crate::Level) argument, an optional `target:`
11291129
/// argument, and an optional set of field names. If the fields are not provided,

0 commit comments

Comments
 (0)