Skip to content

Commit 5e51aaa

Browse files
committed
Merge pull request #69 from tromey/safe-local-variables
set :safe on two defcustoms
2 parents 1ff1d75 + 5937589 commit 5e51aaa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rust-mode.el

+4-2
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,14 @@
7878
(defcustom rust-indent-offset 4
7979
"Indent Rust code by this number of spaces."
8080
:type 'integer
81-
:group 'rust-mode)
81+
:group 'rust-mode
82+
:safe #'integerp)
8283

8384
(defcustom rust-indent-method-chain nil
8485
"Indent Rust method chains, aligned by the '.' operators"
8586
:type 'boolean
86-
:group 'rust-mode)
87+
:group 'rust-mode
88+
:safe #'booleanp)
8789

8890
(defcustom rust-playpen-url-format "https://play.rust-lang.org/?code=%s"
8991
"Format string to use when submitting code to the playpen"

0 commit comments

Comments
 (0)