summaryrefslogtreecommitdiff
path: root/config/flycheck/config-flycheck-cargo-has-command-p-fix.el
diff options
context:
space:
mode:
Diffstat (limited to 'config/flycheck/config-flycheck-cargo-has-command-p-fix.el')
-rw-r--r--config/flycheck/config-flycheck-cargo-has-command-p-fix.el7
1 files changed, 0 insertions, 7 deletions
diff --git a/config/flycheck/config-flycheck-cargo-has-command-p-fix.el b/config/flycheck/config-flycheck-cargo-has-command-p-fix.el
deleted file mode 100644
index 1135165..0000000
--- a/config/flycheck/config-flycheck-cargo-has-command-p-fix.el
+++ /dev/null
@@ -1,7 +0,0 @@
-(defun config-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 'config-flycheck-rust-cargo-has-command-p)