branch: elpa/rust-mode
commit 35298ed93dd6a71fa09d9e1cb6dbd610871f4e2b
Author: Tom Tromey <[email protected]>
Commit: Tom Tromey <[email protected]>

    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.
---
 rust-mode-tests.el | 4 ++--
 1 file 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.

Reply via email to