From 0ff1b7d32fd3e8df194ca5ebec1dab9c61fb9911 Mon Sep 17 00:00:00 2001 From: Steven Arcangeli <506791+stevearc@users.noreply.github.com> Date: Wed, 13 Mar 2024 08:43:23 -0700 Subject: fix(rustfmt): use Cargo.toml settings and default to recent edition (#328) --- doc/formatter_options.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc') diff --git a/doc/formatter_options.md b/doc/formatter_options.md index e5c8493..6dab826 100644 --- a/doc/formatter_options.md +++ b/doc/formatter_options.md @@ -4,6 +4,7 @@ - [injected](#injected) - [prettier](#prettier) +- [rustfmt](#rustfmt) @@ -85,4 +86,13 @@ options = { } ``` +## rustfmt + +```lua +options = { + -- The default edition of Rust to use when no Cargo.toml file is found + default_edition = "2021", +} +``` + -- cgit v1.2.3-70-g09d2