summaryrefslogtreecommitdiff
path: root/init/flycheck/init-flycheck-cargo-has-command-p-fix.el
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2023-07-16 00:45:01 -0400
committerJohn Turner <jturner.usa@gmail.com>2023-07-16 00:45:01 -0400
commit4058ea89d9c6a82ec0dac504e7205cbf22c9ceb3 (patch)
treeb49cc7c8493e7c277a23f10c324fc4fde9967418 /init/flycheck/init-flycheck-cargo-has-command-p-fix.el
parente166c4beaeddbf362e500ac20bd03c37a69a0ac0 (diff)
downloademacs.d-4058ea89d9c6a82ec0dac504e7205cbf22c9ceb3.tar.gz
converted init code to use use-package
Diffstat (limited to 'init/flycheck/init-flycheck-cargo-has-command-p-fix.el')
-rw-r--r--init/flycheck/init-flycheck-cargo-has-command-p-fix.el7
1 files changed, 0 insertions, 7 deletions
diff --git a/init/flycheck/init-flycheck-cargo-has-command-p-fix.el b/init/flycheck/init-flycheck-cargo-has-command-p-fix.el
deleted file mode 100644
index 48d53d6..0000000
--- a/init/flycheck/init-flycheck-cargo-has-command-p-fix.el
+++ /dev/null
@@ -1,7 +0,0 @@
-(defun init-flycheck-rust-cargo-has-command-p (command)
- (let* ((commands (process-lines "cargo" "--list"))
- (trimmed (-map (lambda (row) (-slice row 4 (string-search " " 4))) commands)))
- (seq-contains-p (-rest trimmed) command)))
-
-(advice-add 'flycheck-rust-cargo-has-command-p
- :override 'init-flycheck-rust-cargo-has-command-p)