summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-03-14 20:58:16 +0100
committerTom Tromey <tom@tromey.com>2017-03-14 20:58:16 +0100
commit35298ed93dd6a71fa09d9e1cb6dbd610871f4e2b (patch)
treea306abce6e5e29ca35f913b9b82a4029719604d8
parent0de149a9ad04f652cd7a59a9ef67be8a7d86ba76 (diff)
downloadrust-mode-35298ed93dd6a71fa09d9e1cb6dbd610871f4e2b.tar.gz
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.
-rw-r--r--rust-mode-tests.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust-mode-tests.el b/rust-mode-tests.el
index 7b29ee1..1e637d6 100644
--- a/rust-mode-tests.el
+++ b/rust-mode-tests.el
@@ -951,7 +951,7 @@ Convert the line-column information from that list into a buffer position value.
;;; FIXME: Maybe add an ERT explainer function (something that shows the
;;; surrounding code of the final point, not just the position).
-(defun rust-test-motion (source-code init-pos final-pos manip-func &optional &rest args)
+(defun rust-test-motion (source-code init-pos final-pos manip-func &rest args)
"Test that MANIP-FUNC moves point from INIT-POS to FINAL-POS.
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'."
(apply manip-func args)
(should (equal (point) (rust-get-buffer-pos final-pos)))))
-(defun rust-test-region (source-code init-pos reg-beg reg-end manip-func &optional &rest args)
+(defun rust-test-region (source-code init-pos reg-beg reg-end manip-func &rest args)
"Test that MANIP-FUNC marks region from REG-BEG to REG-END.
INIT-POS is the initial position of point.