Skip to content

Commit 35298ed

Browse files
committed
Don't use "&optional &rest"
rust-mode-tests.el uses "&optional &rest" in some function signatures. This was never really correct, and newer versions of Emacs complain about it. &rest implies &optional, so removing &optional is all that is needed.
1 parent 0de149a commit 35298ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust-mode-tests.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ Convert the line-column information from that list into a buffer position value.
951951

952952
;;; FIXME: Maybe add an ERT explainer function (something that shows the
953953
;;; surrounding code of the final point, not just the position).
954-
(defun rust-test-motion (source-code init-pos final-pos manip-func &optional &rest args)
954+
(defun rust-test-motion (source-code init-pos final-pos manip-func &rest args)
955955
"Test that MANIP-FUNC moves point from INIT-POS to FINAL-POS.
956956
957957
If ARGS are provided, send them to MANIP-FUNC.
@@ -965,7 +965,7 @@ INIT-POS, FINAL-POS are position symbols found in `rust-test-positions-alist'."
965965
(apply manip-func args)
966966
(should (equal (point) (rust-get-buffer-pos final-pos)))))
967967

968-
(defun rust-test-region (source-code init-pos reg-beg reg-end manip-func &optional &rest args)
968+
(defun rust-test-region (source-code init-pos reg-beg reg-end manip-func &rest args)
969969
"Test that MANIP-FUNC marks region from REG-BEG to REG-END.
970970
971971
INIT-POS is the initial position of point.

0 commit comments

Comments
 (0)