Skip to content

Commit c5fb60b

Browse files
authored
[Rust-Axum] Fix rustfmt error due to ordering (#20653)
1 parent 07b5c5f commit c5fb60b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustAxumServerCodegen.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,12 @@ public RustAxumServerCodegen() {
230230

231231
supportingFiles.add(new SupportingFile("Cargo.mustache", "", "Cargo.toml"));
232232
supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore"));
233-
supportingFiles.add(new SupportingFile("lib.mustache", "src", "lib.rs"));
234-
supportingFiles.add(new SupportingFile("models.mustache", "src", "models.rs"));
235233
supportingFiles.add(new SupportingFile("types.mustache", "src", "types.rs"));
236234
supportingFiles.add(new SupportingFile("header.mustache", "src", "header.rs"));
237-
supportingFiles.add(new SupportingFile("server-mod.mustache", "src/server", "mod.rs"));
235+
supportingFiles.add(new SupportingFile("models.mustache", "src", "models.rs"));
238236
supportingFiles.add(new SupportingFile("apis-mod.mustache", apiPackage().replace('.', File.separatorChar), "mod.rs"));
237+
supportingFiles.add(new SupportingFile("server-mod.mustache", "src/server", "mod.rs"));
238+
supportingFiles.add(new SupportingFile("lib.mustache", "src", "lib.rs"));
239239
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md").doNotOverwrite());
240240
}
241241

0 commit comments

Comments
 (0)