From 2236c3bcda1838c8c85821ebb1e286229fadcb46 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 20 Nov 2021 18:35:19 +0100 Subject: [PATCH] docs(rust): rustic-format-{on-save,trigger} Ref: #5800 Co-authored-by: brotzeit --- modules/lang/rust/README.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lang/rust/README.org b/modules/lang/rust/README.org index 1cd35eb98..18a95d6fe 100644 --- a/modules/lang/rust/README.org +++ b/modules/lang/rust/README.org @@ -118,8 +118,8 @@ eglot instead. ** error[E0670]: `async fn` is not permitted in the 2015 edition You may be seeing this error, despite having ~edition = "2018"~ in your =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 -[[doom-module:][:editor format]] enabled). +server tries to invoke on save (if you have ~rustic-format-trigger~ or [[doom-module:][:editor +format]] enabled). To fix this your project needs a =rustfmt.toml= with ~edition = "2018"~ in it.