Skip to content

Commit c5aeaa4

Browse files
Fix clippy::uninlined_format_args lints
1 parent 12308f6 commit c5aeaa4

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

examples/demo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fn console_output(results: &Option<Vec<GpuTimerQueryResult>>, enabled_features:
4141
print!("\x1B[2J\x1B[1;1H"); // Clear terminal and put cursor to first row first column
4242
println!("Welcome to wgpu_profiler demo!");
4343
println!();
44-
println!("Enabled device features: {:?}", enabled_features);
44+
println!("Enabled device features: {enabled_features:?}");
4545
println!();
4646
println!(
4747
"Press space to write out a trace file that can be viewed in chrome's chrome://tracing"

src/chrometrace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ fn write_results_recursive(
4747
//
4848
// for now, we use this hack to convert to integer
4949
let tid_to_int = |tid| {
50-
format!("{:?}", tid)
50+
format!("{tid:?}")
5151
.replace("ThreadId(", "")
5252
.replace(')', "")
5353
.parse::<u64>()

tests/src/interleaved_command_buffer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn interleaved_scopes() {
3434
.unwrap();
3535

3636
// Print entire tree. Useful for debugging the test if it fails!
37-
println!("{:#?}", frame);
37+
println!("{frame:#?}");
3838

3939
// Check if the frame gives us the expected nesting of timer scopes.
4040
validate_results(
@@ -110,7 +110,7 @@ fn multithreaded_scopes() {
110110
.unwrap();
111111

112112
// Print entire tree. Useful for debugging the test if it fails!
113-
println!("{:#?}", frame);
113+
println!("{frame:#?}");
114114

115115
// Both encoders should have produces the scopes, albeit in arbitrary order.
116116
validate_results_unordered(

tests/src/nested_scopes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fn nested_scopes(device: &wgpu::Device, queue: &wgpu::Queue) {
6868
.unwrap();
6969

7070
// Print entire tree. Useful for debugging the test if it fails!
71-
println!("{:#?}", frame);
71+
println!("{frame:#?}");
7272

7373
// Check if the frame gives us the expected nesting of timer scopes.
7474
validate_results(

0 commit comments

Comments
 (0)