Commit d1f30c1
committed
Resolve uninlined_format_args pedantic clippy lint in test
warning: variables can be used directly in the `format!` string
--> tests/trait.rs:32:19
|
32 | .push(format!("dropping {}", self));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
|
32 - .push(format!("dropping {}", self));
32 + .push(format!("dropping {self}"));
|1 parent 1e18d0b commit d1f30c1
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 29 | + | |
33 | 30 | | |
34 | 31 | | |
35 | 32 | | |
| |||
0 commit comments