From b9bc10f7730ffb2c401660c3a8ecbf8207c0b474 Mon Sep 17 00:00:00 2001 From: Jan Haller Date: Sun, 3 Nov 2024 08:47:46 +0100 Subject: [PATCH] codegen-rustfmt: use 2021 edition The default edition (2015) will fail on some newer syntax constructs, such as c"string". --- godot-codegen/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/godot-codegen/src/lib.rs b/godot-codegen/src/lib.rs index 2ec1936a1..8b3a423ea 100644 --- a/godot-codegen/src/lib.rs +++ b/godot-codegen/src/lib.rs @@ -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); }