Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Eliza Weisman <eliza@elizas.website>
  • Loading branch information
hds and hawkw authored Oct 8, 2024
1 parent d5af179 commit d0991ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tokio-console/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub struct Config {
///
/// If this is set to `all`, all warnings are allowed.
///
/// [possible values: all, self-wakes, lost-waker, never-yielded, large-future]
/// [possible values: all, self-wakes, lost-waker, never-yielded, large-future, auto-boxed-future]
#[clap(long = "allow", short = 'A', num_args = 1..)]
pub(crate) allow_warnings: Option<AllowedWarnings>,

Expand Down
4 changes: 2 additions & 2 deletions tokio-console/src/warnings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ impl Warn<Task> for AutoBoxedFuture {
.size_bytes()
.expect("warning should not trigger if size is None");
format!(
"This task was auto-boxed by the runtime due to its size (originally \
"This task's future was auto-boxed by the runtime when spawning, due to its size (originally \
{original_size} bytes, boxed size {boxed_size} bytes)",
)
}
Expand All @@ -307,7 +307,7 @@ impl LargeFuture {
pub(crate) fn new(min_size: usize) -> Self {
Self {
min_size,
description: format!("tasks are large (threshold {} bytes)", min_size),
description: format!("tasks are {} bytes or larger", min_size),
}
}
}
Expand Down

0 comments on commit d0991ca

Please sign in to comment.