diff --git a/modules/lang/rust/config.el b/modules/lang/rust/config.el index 7f910f889..1d2b8bdfb 100644 --- a/modules/lang/rust/config.el +++ b/modules/lang/rust/config.el @@ -55,17 +55,12 @@ (add-hook 'rustic-mode-hook #'rainbow-delimiters-mode) (defadvice! +rust--dont-install-packages-p (orig-fn &rest args) - :override #'rustic-setup-rls + :around #'rustic-setup-rls (cl-letf (;; `rustic-setup-rls' uses `package-installed-p' unnecessarily, to ;; try to detect rls. This breaks because Doom lazy loads ;; package.el, and doesn't use package.el to begin with. ((symbol-function #'package-installed-p) - (symbol-function #'ignore)) - ;; rustic really wants to manages its own dependencies. I wish it - ;; wouldn't. Doom already does; we don't need its help. - ((symbol-function #'rustic-install-rls-client-p) - (lambda (&rest _) - (message "No RLS server running.")))) + (symbol-function #'identity))) (apply orig-fn args))))