Commit 87a287a
committed
Fix clippy::uninlined_format_args warning
```
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| {
|
```1 parent 3d912bb commit 87a287a
2 files changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
| 328 | + | |
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
0 commit comments