Skip to content

bench-tps: Resolve Rust 1.88 clippy lints and format strings#7435

Merged
steviez merged 2 commits intoanza-xyz:masterfrom
steviez:rust_1.88_bench-tps
Aug 9, 2025
Merged

bench-tps: Resolve Rust 1.88 clippy lints and format strings#7435
steviez merged 2 commits intoanza-xyz:masterfrom
steviez:rust_1.88_bench-tps

Conversation

@steviez
Copy link
Copy Markdown

@steviez steviez commented Aug 9, 2025

Problem

Working towards #6850, broken out from #6854

Summary of Changes

  • Run cargo clippy --fix --tests with Rust 1.88.0 set in rust-toolchain.toml
    • These should only be instances of uninlined_format_args
  • Run cargo fmt with format_strings = true set in rustfmt.toml

Comment thread bench-tps/src/bench.rs
"\nAverage max TPS: {:.2}, {} nodes had 0 TPS",
average_max, nodes_with_zero_tps
);
info!("\nAverage max TPS: {average_max:.2}, {nodes_with_zero_tps} nodes had 0 TPS");
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if the leading newline should be here but gonna leave for this PR I think

Comment thread bench-tps/src/bench.rs
};
info!(
"\nHighest TPS: {:.2} sampling period {}s max transactions: {} clients: {} drop rate: {:.2}",
"\nHighest TPS: {:.2} sampling period {}s max transactions: {} clients: {} drop rate: \
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with this leading newline

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.3%. Comparing base (4c47fca) to head (809c4f2).
⚠️ Report is 2593 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7435   +/-   ##
=======================================
  Coverage    83.2%    83.3%           
=======================================
  Files         798      798           
  Lines      363025   363025           
=======================================
+ Hits       302379   302431   +52     
+ Misses      60646    60594   -52     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@steviez steviez requested a review from brooksprumo August 9, 2025 16:33
@steviez steviez merged commit c73491a into anza-xyz:master Aug 9, 2025
40 checks passed
@steviez steviez deleted the rust_1.88_bench-tps branch August 9, 2025 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants