3

Inline all format arguments where possible by nyurik · Pull Request #13835 · rus...

 1 year ago
source link: https://github.com/rust-lang/rust-analyzer/pull/13835
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Contributor

@nyurik nyurik commented Dec 23, 2022

This makes code more readale and concise,
moving all format arguments like format!("{}", foo) into the more compact format!("{foo}") form.

The change was automatically created with, so there are far less change of an accidental typo.

cargo clippy --fix -- -A clippy::all -W clippy::uninlined_format_args

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK