Apply first set of Rustfmt edition 2024 changes (#13478)

Rustfmt introduces a lot of formatting changes in the 2024 edition. To
not break everything all at once, we split out the set of formatting
changes compatible with both the 2021 and 2024 edition by first
formatting with the 2024 style, and then again with the currently used
2021 style.

Notable changes are the formatting of derive macro attributes and lines
with overly long strings and adding trailing semicolons after statements
consistently.
This commit is contained in:
konsti
2025-05-17 02:19:02 +02:00
committed by GitHub
parent b31d08c683
commit 5d37c7ecc5
77 changed files with 660 additions and 313 deletions
+3 -1
View File
@@ -53,7 +53,9 @@ pub(crate) fn main(args: &Args) -> Result<()> {
println!("Up-to-date: {filename}");
} else {
let comparison = StrComparison::new(&current, &reference_string);
bail!("{filename} changed, please run `cargo dev generate-cli-reference`:\n{comparison}");
bail!(
"{filename} changed, please run `cargo dev generate-cli-reference`:\n{comparison}"
);
}
}
Err(err) if err.kind() == std::io::ErrorKind::NotFound => {