Skip to content

Commit

Permalink
codegen-rustfmt: use 2021 edition
Browse files Browse the repository at this point in the history
The default edition (2015) will fail on some newer syntax constructs, such as c"string".
  • Loading branch information
Bromeon committed Nov 3, 2024
1 parent 337ebbd commit b9bc10f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions godot-codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ mod rustfmt {

for files in out_files.chunks(20) {
let mut command = Command::new("rustfmt");
command.arg("--edition");
command.arg("2021");

for file in files {
command.arg(file);
}
Expand Down

0 comments on commit b9bc10f

Please sign in to comment.