Skip to content

Commit 1c63cde

Browse files
committed
Use edition 2024 for rustfmt
1 parent d5220ea commit 1c63cde

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp2rust/cpp2rust.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ int main(int argc, char *argv[]) {
190190
file.close();
191191

192192
// call rustfmt.
193-
std::string rustfmt_command = "rustfmt " + RsFile;
193+
std::string rustfmt_command = "rustfmt --edition 2024 " + RsFile;
194194
if (std::system(rustfmt_command.c_str()) != 0) {
195195
llvm::errs() << "ERROR: failed to run rustfmt\n";
196196
return EXIT_FAILURE;

0 commit comments

Comments
 (0)