Skip to content

Commit b920f62

Browse files
committed
lsp-rust: remove redundant `lsp-interface' comment
`lsp-interface' wasn't designed to destructure lists; stating that fact before `lsp-rust--analyzer-show-references' is as such redundant, since that is normal and not noteworthy.
1 parent 398ea2b commit b920f62

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clients/lsp-rust.el

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,6 @@ The command should include `--message=format=json` or similar option."
585585
(lsp-defun lsp-rust--analyzer-run-single ((&Command :arguments?))
586586
(lsp-rust-analyzer-run (lsp-seq-first arguments?)))
587587

588-
;; `lsp-interface' is unsuitable for ShowReference destructuring, as that code
589-
;; action yields an array of three elements, not a map.
590588
(lsp-defun lsp-rust--analyzer-show-references
591589
((&Command :title :arguments? [_uri _filepos references]))
592590
(lsp-show-xrefs (lsp--locations-to-xref-items references) nil

0 commit comments

Comments
 (0)