docs(rust): rustic-format-{on-save,trigger}

Ref: #5800
Co-authored-by: brotzeit <brotzeitmacher@gmail.com>
This commit is contained in:
Henrik Lissner 2021-11-20 18:35:19 +01:00
parent 88844e9cec
commit 2236c3bcda

View file

@ -118,8 +118,8 @@ eglot instead.
** error[E0670]: `async fn` is not permitted in the 2015 edition ** error[E0670]: `async fn` is not permitted in the 2015 edition
You may be seeing this error, despite having ~edition = "2018"~ in your You may be seeing this error, despite having ~edition = "2018"~ in your
=Cargo.toml=. This error actually originates from ~rustfmt~, which the LSP =Cargo.toml=. This error actually originates from ~rustfmt~, which the LSP
server tries to invoke on save (if you have ~rustic-format-on-save~ or server tries to invoke on save (if you have ~rustic-format-trigger~ or [[doom-module:][:editor
[[doom-module:][:editor format]] enabled). format]] enabled).
To fix this your project needs a =rustfmt.toml= with ~edition = "2018"~ in it. To fix this your project needs a =rustfmt.toml= with ~edition = "2018"~ in it.