Skip to content

Commit 544a443

Browse files
authored
Use the 2024 edition for rustfmt in this workspace (#2517)
Possible now that MSRV is high enough
1 parent 5acb1b1 commit 544a443

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ jobs:
233233
# Note that this doesn't use `cargo fmt` because that doesn't format
234234
# modules-defined-in-macros which is in use in `wast` for example. This is
235235
# the best alternative I can come up with at this time
236-
- run: find . -name '*.rs' | xargs rustfmt --check --edition 2021
236+
- run: find . -name '*.rs' | xargs rustfmt --check --edition 2024
237237

238238
fuzz:
239239
name: Fuzz

rustfmt.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
# This project isn't yet using the 2024 edition due to its MSRV requirement but
2-
# we're going ahead and opting into the 2024 style edition ahead of updating the
3-
# Rust edition itself.
4-
style_edition = '2024'
5-
edition = '2021'
1+
edition = '2024'

0 commit comments

Comments
 (0)