summaryrefslogtreecommitdiff
path: root/rust-rustfmt.el
diff options
context:
space:
mode:
authorapiraino <apiraino@users.noreply.github.com>2025-06-18 22:40:54 +0200
committerapiraino <apiraino@users.noreply.github.com>2025-06-20 09:48:54 +0200
commitf2c0802b3325ca07681e8b5745690127a68cc037 (patch)
tree92b66dcef473a9ef7fd8d14b208f799d68a0a859 /rust-rustfmt.el
parent0d5d54a19e89f9012f3fa84174f562ab18cebb96 (diff)
downloadrust-mode-f2c0802b3325ca07681e8b5745690127a68cc037.tar.gz
Ensure rustfmt is invoked without edition parameter
Diffstat (limited to 'rust-rustfmt.el')
-rw-r--r--rust-rustfmt.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/rust-rustfmt.el b/rust-rustfmt.el
index 6fb0e87..adaeb0d 100644
--- a/rust-rustfmt.el
+++ b/rust-rustfmt.el
@@ -33,8 +33,10 @@
:type 'string
:group 'rust-mode)
-(defcustom rust-rustfmt-switches '("--edition" "2024")
- "Arguments to pass when invoking the `rustfmt' executable."
+(defcustom rust-rustfmt-switches nil
+ "Arguments to pass when invoking the `rustfmt' executable. This variable
+will override any user configuration (e.g. rustfmt.toml). Recommendation
+is to not modify this and rely on declarative configuration instead."
:type '(repeat string)
:group 'rust-mode)