Commit 221e3d4
committed
Resolve uninlined_format_args pedantic clippy lint
warning: variables can be used directly in the `format!` string --> tests/f2s_test.rs:67:9 | 67 | assert!(!f.is_finite(), "f={}", f); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = 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 | 67 - assert!(!f.is_finite(), "f={}", f); 67 + assert!(!f.is_finite(), "f={f}"); | warning: variables can be used directly in the `format!` string --> tests/d2s_test.rs:74:9 | 74 | assert!(!f.is_finite(), "f={}", f); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = 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 | 74 - assert!(!f.is_finite(), "f={}", f); 74 + assert!(!f.is_finite(), "f={f}"); |1 parent c667b72 commit 221e3d4
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
0 commit comments