Skip to content

Commit 96f7f79

Browse files
committed
Fix free-variable warnings
Constant must be defined before being used, to avoid warnings about free variables
1 parent ded5ef7 commit 96f7f79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust-mode.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@
104104
(backward-up-list)
105105
(back-to-indentation))))
106106

107+
(defconst rust-re-ident "[[:word:][:multibyte:]_][[:word:][:multibyte:]_[:digit:]]*")
108+
107109
(defun rust-align-to-method-chain ()
108110
(save-excursion
109111
;; for method-chain alignment to apply, we must be looking at
@@ -318,7 +320,6 @@
318320
"bool"
319321
"str" "char"))
320322

321-
(defconst rust-re-ident "[[:word:][:multibyte:]_][[:word:][:multibyte:]_[:digit:]]*")
322323
(defconst rust-re-CamelCase "[[:upper:]][[:word:][:multibyte:]_[:digit:]]*")
323324
(defun rust-re-word (inner) (concat "\\<" inner "\\>"))
324325
(defun rust-re-grab (inner) (concat "\\(" inner "\\)"))

0 commit comments

Comments
 (0)