summaryrefslogtreecommitdiff
path: root/rust-rustfmt.el
diff options
context:
space:
mode:
authorSibi Prabakaran <sibi@psibi.in>2025-06-20 14:59:25 +0530
committerGitHub <noreply@github.com>2025-06-20 14:59:25 +0530
commit8cfcdd166b6c34b0eac3bc69b0141678a48db33d (patch)
tree92b66dcef473a9ef7fd8d14b208f799d68a0a859 /rust-rustfmt.el
parent0d5d54a19e89f9012f3fa84174f562ab18cebb96 (diff)
parentf2c0802b3325ca07681e8b5745690127a68cc037 (diff)
downloadrust-mode-8cfcdd166b6c34b0eac3bc69b0141678a48db33d.tar.gz
Merge pull request #571 from apiraino/rustfmt-2018-edition-default
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)