Commit a6638fe
committed
Fix clippy::uninlined_format_args warning
```
error: variables can be used directly in the `format!` string
--> examples/print.rs:29:17
|
29 | eprintln!("Received signal {:?}", signal);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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
|
29 - eprintln!("Received signal {:?}", signal);
29 + eprintln!("Received signal {signal:?}");
|
```1 parent ec5c567 commit a6638fe
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments