Skip to content

Commit 8b52d4b

Browse files
committed
Use 2024 edition when calling rustfmt
1 parent b279037 commit 8b52d4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/wasm/site/update-gists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def set_gist(year, day, src, gist_id=None):
204204
src = replace_include_str(dirpath, src)
205205

206206
# Finally format source code:
207-
src = subprocess.run(['rustfmt'], stdout=subprocess.PIPE, input=src, encoding='utf-8', check=True).stdout
207+
src = subprocess.run(['rustfmt', '--edition', '2024'], stdout=subprocess.PIPE, input=src, encoding='utf-8', check=True).stdout
208208

209209
year_str = str(year)
210210
day_str = str(day)

0 commit comments

Comments
 (0)