From f2c0802b3325ca07681e8b5745690127a68cc037 Mon Sep 17 00:00:00 2001 From: apiraino Date: Wed, 18 Jun 2025 22:40:54 +0200 Subject: Ensure rustfmt is invoked without edition parameter --- rust-rustfmt.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rust-rustfmt.el') 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) -- cgit v1.2.3