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); }