Skip to content

Commit

Permalink
Fix clippy::uninlined_format_args warning (#2659)
Browse files Browse the repository at this point in the history
```
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:?}");
   |
```
  • Loading branch information
taiki-e committed Oct 25, 2022
1 parent 8cfc085 commit 260f9e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/functional/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ fn main() {
// to drive all futures. Eventually fut_values will be driven to completion.
let values: Vec<i32> = executor::block_on(fut_values);

println!("Values={:?}", values);
println!("Values={values:?}");
}
2 changes: 1 addition & 1 deletion examples/imperative/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ fn main() {
// to drive all futures. Eventually fut_values will be driven to completion.
let values: Vec<i32> = executor::block_on(fut_values);

println!("Values={:?}", values);
println!("Values={values:?}");
}

0 comments on commit 260f9e9

Please sign in to comment.