Skip to content

Commit 5937589

Browse files
committed
set :safe on two defcustoms
1 parent 86db9bd commit 5937589

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
@@ -55,12 +55,14 @@
5555
(defcustom rust-indent-offset 4
5656
"Indent Rust code by this number of spaces."
5757
:type 'integer
58-
:group 'rust-mode)
58+
:group 'rust-mode
59+
:safe #'integerp)
5960

6061
(defcustom rust-indent-method-chain nil
6162
"Indent Rust method chains, aligned by the '.' operators"
6263
:type 'boolean
63-
:group 'rust-mode)
64+
:group 'rust-mode
65+
:safe #'booleanp)
6466

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

0 commit comments

Comments
 (0)