Skip to content

Conversation

@taiki-e
Copy link
Collaborator

@taiki-e taiki-e commented Jul 6, 2025

No description provided.

taiki-e added 2 commits July 6, 2025 17:23
```
warning: variables can be used directly in the `format!` string
  --> examples/priority.rs:75:13
   |
75 |             println!("{:?}", priority);
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
   = note: `#[warn(clippy::uninlined_format_args)]` on by default
help: change this to
   |
75 -             println!("{:?}", priority);
75 +             println!("{priority:?}");
   |

warning: variables can be used directly in the `format!` string
  --> examples/priority.rs:77:13
   |
77 |             println!("{:?}", priority);
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
   |
77 -             println!("{:?}", priority);
77 +             println!("{priority:?}");
   |

warning: variables can be used directly in the `format!` string
  --> benches/executor.rs:62:34
   |
62 |             group.bench_function(format!("{}::spawn_one", prefix), |b| {
   |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
   = note: `#[warn(clippy::uninlined_format_args)]` on by default
help: change this to
   |
62 -             group.bench_function(format!("{}::spawn_one", prefix), |b| {
62 +             group.bench_function(format!("{prefix}::spawn_one"), |b| {
   |

warning: variables can be used directly in the `format!` string
   --> benches/executor.rs:101:34
    |
101 |             group.bench_function(format!("{}::spawn_many_local", prefix), |b| {
    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
    |
101 -             group.bench_function(format!("{}::spawn_many_local", prefix), |b| {
101 +             group.bench_function(format!("{prefix}::spawn_many_local"), |b| {
    |

warning: variables can be used directly in the `format!` string
   --> benches/executor.rs:139:34
    |
139 |             group.bench_function(format!("{}::spawn_recursively", prefix), |b| {
    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
    |
139 -             group.bench_function(format!("{}::spawn_recursively", prefix), |b| {
139 +             group.bench_function(format!("{prefix}::spawn_recursively"), |b| {
    |

warning: variables can be used directly in the `format!` string
   --> benches/executor.rs:204:34
    |
204 |             group.bench_function(format!("{}::yield_now", prefix), |b| {
    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
    |
204 -             group.bench_function(format!("{}::yield_now", prefix), |b| {
204 +             group.bench_function(format!("{prefix}::yield_now"), |b| {
    |

warning: variables can be used directly in the `format!` string
   --> benches/executor.rs:250:34
    |
250 |             group.bench_function(format!("{}::channels", prefix), |b| {
    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
    |
250 -             group.bench_function(format!("{}::channels", prefix), |b| {
250 +             group.bench_function(format!("{prefix}::channels"), |b| {
    |

warning: variables can be used directly in the `format!` string
   --> benches/executor.rs:328:34
    |
328 |             group.bench_function(format!("{}::web_server", prefix), |b| {
    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
    |
328 -             group.bench_function(format!("{}::web_server", prefix), |b| {
328 +             group.bench_function(format!("{prefix}::web_server"), |b| {
    |
```
```
warning: unneeded unit return type
    --> src/lib.rs:1159:42
     |
1159 |     struct AsyncCallOnDrop<Fut, Cleanup: FnMut()> {
     |                                          ^^^^^^^ help: remove the `-> ()`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
     = note: `#[warn(clippy::unused_unit)]` on by default
```
@taiki-e taiki-e merged commit b3269e1 into master Jul 6, 2025
8 checks passed
@taiki-e taiki-e deleted the taiki-e/ci branch July 6, 2025 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant