diff options
author | Steven Arcangeli <506791+stevearc@users.noreply.github.com> | 2024-03-13 08:43:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 08:43:23 -0700 |
commit | 0ff1b7d32fd3e8df194ca5ebec1dab9c61fb9911 (patch) | |
tree | 8cb5057734a5700dee5e0dc920ed73d55524d4db /doc/formatter_options.md | |
parent | db2c697fe8302f0328b50b480204be1b577a1e2f (diff) |
fix(rustfmt): use Cargo.toml settings and default to recent edition (#328)
Diffstat (limited to 'doc/formatter_options.md')
-rw-r--r-- | doc/formatter_options.md | 10 |
1 files changed, 10 insertions, 0 deletions
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) <!-- /TOC --> @@ -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", +} +``` + <!-- /OPTIONS --> |