Skip to content

Commit 260f9e9

Browse files
authored
Fix clippy::uninlined_format_args warning (#2659)
``` error: variables can be used directly in the `format!` string --> examples/functional/src/main.rs:45:5 | 45 | println!("Values={:?}", values); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = 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: change this to | 45 - println!("Values={:?}", values); 45 + println!("Values={values:?}"); | ```
1 parent 8cfc085 commit 260f9e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/functional/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ fn main() {
4242
// to drive all futures. Eventually fut_values will be driven to completion.
4343
let values: Vec<i32> = executor::block_on(fut_values);
4444

45-
println!("Values={:?}", values);
45+
println!("Values={values:?}");
4646
}

examples/imperative/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ fn main() {
4444
// to drive all futures. Eventually fut_values will be driven to completion.
4545
let values: Vec<i32> = executor::block_on(fut_values);
4646

47-
println!("Values={:?}", values);
47+
println!("Values={values:?}");
4848
}

0 commit comments

Comments
 (0)