Skip to content

Commit 4686c6e

Browse files
authored
Merge pull request #554 from PuercoPop/update-rustfmt-default-edition
Update rustfmt's default edition: 2018 -> 2021
2 parents a529a45 + 5bcc32e commit 4686c6e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unreleased
2+
3+
- Update rustfmt's defaults to use 2021 edition ([#554](https://github.com/rust-lang/rust-mode/issues/509)).
4+
15
# v1.0.6
26

37
- Add support for treesitter mode.

rust-rustfmt.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
:type 'string
3131
:group 'rust-mode)
3232

33-
(defcustom rust-rustfmt-switches '("--edition" "2018")
33+
(defcustom rust-rustfmt-switches '("--edition" "2021")
3434
"Arguments to pass when invoking the `rustfmt' executable."
3535
:type '(repeat string)
3636
:group 'rust-mode)

0 commit comments

Comments
 (0)