[Rust-Axum] Fix rustfmt error due to ordering (#20653)

This commit is contained in:
Trent Nadeau 2025-02-17 06:55:20 -05:00 committed by GitHub
parent 07b5c5fc70
commit c5fb60b5f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -230,12 +230,12 @@ public class RustAxumServerCodegen extends AbstractRustCodegen implements Codege
supportingFiles.add(new SupportingFile("Cargo.mustache", "", "Cargo.toml"));
supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore"));
supportingFiles.add(new SupportingFile("lib.mustache", "src", "lib.rs"));
supportingFiles.add(new SupportingFile("models.mustache", "src", "models.rs"));
supportingFiles.add(new SupportingFile("types.mustache", "src", "types.rs"));
supportingFiles.add(new SupportingFile("header.mustache", "src", "header.rs"));
supportingFiles.add(new SupportingFile("server-mod.mustache", "src/server", "mod.rs"));
supportingFiles.add(new SupportingFile("models.mustache", "src", "models.rs"));
supportingFiles.add(new SupportingFile("apis-mod.mustache", apiPackage().replace('.', File.separatorChar), "mod.rs"));
supportingFiles.add(new SupportingFile("server-mod.mustache", "src/server", "mod.rs"));
supportingFiles.add(new SupportingFile("lib.mustache", "src", "lib.rs"));
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md").doNotOverwrite());
}