make sure to use the right rustfmt edition

This commit is contained in:
Chris Cochrun 2024-11-13 13:35:54 -06:00
parent 0f293b121c
commit dfe8e018dc
2 changed files with 4 additions and 2 deletions

View file

@ -3587,7 +3587,8 @@ I'd like to start learning and using rust if I can.
(setq rustic-format-on-save t
rustic-lsp-client 'eglot
rustic-clippy-arguments "-- -W clippy::pedantic -W clippy::perf -W clippy::nursery -W clippy::unwrap_used"
rustic-rustfmt-args ""
rustic-rustfmt-args "--edition 2021"
rust-format-on-save t
rustic-test-arguments "--benches --tests --all-features -- --nocapture")
(advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
(add-to-list 'compilation-error-regexp-alist rustic-compilation-error)

View file

@ -2624,7 +2624,8 @@ targets."
(setq rustic-format-on-save t
rustic-lsp-client 'eglot
rustic-clippy-arguments "-- -W clippy::pedantic -W clippy::perf -W clippy::nursery -W clippy::unwrap_used"
rustic-rustfmt-args ""
rustic-rustfmt-args "--edition 2021"
rust-format-on-save t
rustic-test-arguments "--benches --tests --all-features -- --nocapture")
(advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
(add-to-list 'compilation-error-regexp-alist rustic-compilation-error)