emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode 96f7f79 156/486: Fix free-variable warnings


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 96f7f79 156/486: Fix free-variable warnings
Date: Sat, 7 Aug 2021 09:25:09 -0400 (EDT)

branch: elpa/rust-mode
commit 96f7f79da777618232eb8d794c46b1ff3c4c7b72
Author: Sebastian Wiesner <swiesner@lunaryorn.com>
Commit: Sebastian Wiesner <swiesner@lunaryorn.com>

    Fix free-variable warnings
    
    Constant must be defined before being used, to avoid warnings about free
    variables
---
 rust-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rust-mode.el b/rust-mode.el
index ad1af60..bb800da 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -104,6 +104,8 @@
       (backward-up-list)
       (back-to-indentation))))
 
+(defconst rust-re-ident 
"[[:word:][:multibyte:]_][[:word:][:multibyte:]_[:digit:]]*")
+
 (defun rust-align-to-method-chain ()
   (save-excursion
     ;; for method-chain alignment to apply, we must be looking at
@@ -318,7 +320,6 @@
     "bool"
     "str" "char"))
 
-(defconst rust-re-ident 
"[[:word:][:multibyte:]_][[:word:][:multibyte:]_[:digit:]]*")
 (defconst rust-re-CamelCase "[[:upper:]][[:word:][:multibyte:]_[:digit:]]*")
 (defun rust-re-word (inner) (concat "\\<" inner "\\>"))
 (defun rust-re-grab (inner) (concat "\\(" inner "\\)"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]