You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
```
error: variables can be used directly in the `format!` string
--> examples/linux-inotify.rs:55:17
|
55 | println!("{:?}", event);
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `-D clippy::uninlined-format-args` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
|
55 - println!("{:?}", event);
55 + println!("{event:?}");
|
error: variables can be used directly in the `format!` string
--> benches/io.rs:35:30
|
35 | group.bench_function(format!("TcpStream.{}", driver_name), move |b| {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `-D clippy::uninlined-format-args` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
|
35 - group.bench_function(format!("TcpStream.{}", driver_name), move |b| {
35 + group.bench_function(format!("TcpStream.{driver_name}"), move |b| {
|
error: variables can be used directly in the `format!` string
--> benches/io.rs:58:34
|
58 | group.bench_function(format!("UnixStream.{}", driver_name), |b| {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
58 - group.bench_function(format!("UnixStream.{}", driver_name), |b| {
58 + group.bench_function(format!("UnixStream.{driver_name}"), |b| {
|
error: variables can be used directly in the `format!` string
--> benches/io.rs:82:30
|
82 | group.bench_function(format!("TcpStream.{}", driver_name), move |b| {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
82 - group.bench_function(format!("TcpStream.{}", driver_name), move |b| {
82 + group.bench_function(format!("TcpStream.{driver_name}"), move |b| {
|
error: variables can be used directly in the `format!` string
--> benches/io.rs:108:31
|
108 | let socket_addr = format!("/tmp/async-io-bench-{}.sock", id);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
108 - let socket_addr = format!("/tmp/async-io-bench-{}.sock", id);
108 + let socket_addr = format!("/tmp/async-io-bench-{id}.sock");
|
error: variables can be used directly in the `format!` string
--> benches/io.rs:111:34
|
111 | group.bench_function(format!("UnixStream.{}", driver_name), |b| {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
111 - group.bench_function(format!("UnixStream.{}", driver_name), |b| {
111 + group.bench_function(format!("UnixStream.{driver_name}"), |b| {
|
error: variables can be used directly in the `format!` string
--> benches/io.rs:145:30
|
145 | group.bench_function(format!("UdpSocket.{}", driver_name), |b| {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
145 - group.bench_function(format!("UdpSocket.{}", driver_name), |b| {
145 + group.bench_function(format!("UdpSocket.{driver_name}"), |b| {
|
error: variables can be used directly in the `format!` string
--> benches/timer.rs:27:13
|
27 | format!("register_timer.({} previous timers)", prev_timer_count),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `-D clippy::uninlined-format-args` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
|
27 - format!("register_timer.({} previous timers)", prev_timer_count),
27 + format!("register_timer.({prev_timer_count} previous timers)"),
|
```
0 commit comments