From eaa32572b99723c6fdd110fa39bbc7d7bf34a04e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 16 May 2021 14:27:51 -0400 Subject: [PATCH] lang/rust: fix void-variable flycheck-checkers error In case flycheck hasn't loaded yet. --- modules/lang/rust/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lang/rust/config.el b/modules/lang/rust/config.el index be7d08f14..9de0aa700 100644 --- a/modules/lang/rust/config.el +++ b/modules/lang/rust/config.el @@ -28,7 +28,8 @@ (remove-hook 'rustic-mode-hook #'flycheck-mode) (remove-hook 'rustic-mode-hook #'flymake-mode-off) (unless (featurep! +lsp) - (add-to-list 'flycheck-checkers 'rustic-clippy)) + (after! flycheck + (add-to-list 'flycheck-checkers 'rustic-clippy))) ;; HACK `rustic-lsp' sets up lsp-mode/eglot too early. We move it to ;; `rustic-mode-local-vars-hook' so file/dir local variables can be used