style: simplify string formatting

Most of this code was written before this was supported by Rust.

Closes #2912
This commit is contained in:
Hamir Mahal
2024-10-16 09:03:15 -07:00
committed by Andrew Gallant
parent e169881a36
commit f1b4b182f2
5 changed files with 11 additions and 12 deletions

View File

@@ -72,7 +72,7 @@ pub(crate) fn generate() -> String {
}
if let Some(negated) = flag.name_negated() {
let dash_name = format!("--{}", negated);
let dash_name = format!("--{negated}");
flags.push_str("\n ");
flags.push_str(
&TEMPLATE_FLAG