Skip to content

Commit 85acb90

Browse files
authored
chore: fix new clippy lint from Rust 1.86 (#622)
The new [`clippy::doc_overindented_list_items`] lint was triggering on a few lines in the documentation of our Tokio Console config struct. These have been aligned with Clippy's suggestions. [`clippy::doc_overindented_list_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
1 parent 7e7b043 commit 85acb90

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tokio-console/src/config.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ pub struct Config {
5858
/// Each warning is specified by its name, which is one of:
5959
///
6060
/// * `self-wakes` -- Warns when a task wakes itself more than a certain percentage of its total wakeups.
61-
/// Default percentage is 50%.
61+
/// Default percentage is 50%.
6262
///
6363
/// * `lost-waker` -- Warns when a task is dropped without being woken.
6464
///
6565
/// * `never-yielded` -- Warns when a task has never yielded.
6666
///
6767
/// * `auto-boxed-future` -- Warnings when the future driving a task was automatically boxed by
68-
/// the runtime because it was large.
68+
/// the runtime because it was large.
6969
///
7070
/// * `large-future` -- Warnings when the future driving a task occupies a large amount of
71-
/// stack space.
71+
/// stack space.
7272
#[clap(long = "warn", short = 'W', value_delimiter = ',', num_args = 1..)]
7373
#[clap(default_values_t = KnownWarnings::default_enabled_warnings())]
7474
pub(crate) warnings: Vec<KnownWarnings>,
@@ -80,17 +80,17 @@ pub struct Config {
8080
/// Each warning is specified by its name, which is one of:
8181
///
8282
/// * `self-wakes` -- Warns when a task wakes itself more than a certain percentage of its total wakeups.
83-
/// Default percentage is 50%.
83+
/// Default percentage is 50%.
8484
///
8585
/// * `lost-waker` -- Warns when a task is dropped without being woken.
8686
///
8787
/// * `never-yielded` -- Warns when a task has never yielded.
8888
///
8989
/// * `auto-boxed-future` -- Warnings when the future driving a task was automatically boxed by
90-
/// the runtime because it was large.
90+
/// the runtime because it was large.
9191
///
9292
/// * `large-future` -- Warnings when the future driving a task occupies a large amount of
93-
/// stack space.
93+
/// stack space.
9494
///
9595
/// If this is set to `all`, all warnings are allowed.
9696
///

0 commit comments

Comments
 (0)