diff options
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.el | 7 |
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) |