summaryrefslogtreecommitdiff
path: root/rust-mode.el
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2015-05-24 10:42:30 -0600
committerTom Tromey <tom@tromey.com>2015-05-24 10:42:30 -0600
commit59375893e511c22f03ab8e4c965c70d62257ebef (patch)
treeb34e52d31ce309a867e4918006bde4417343382f /rust-mode.el
parent86db9bdb55e9812425f4c9ece47b1bc2b5dd836b (diff)
downloadrust-mode-59375893e511c22f03ab8e4c965c70d62257ebef.tar.gz
set :safe on two defcustoms
Diffstat (limited to 'rust-mode.el')
-rw-r--r--rust-mode.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/rust-mode.el b/rust-mode.el
index 58df76d..76eb998 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -55,12 +55,14 @@
(defcustom rust-indent-offset 4
"Indent Rust code by this number of spaces."
:type 'integer
- :group 'rust-mode)
+ :group 'rust-mode
+ :safe #'integerp)
(defcustom rust-indent-method-chain nil
"Indent Rust method chains, aligned by the '.' operators"
:type 'boolean
- :group 'rust-mode)
+ :group 'rust-mode
+ :safe #'booleanp)
(defcustom rust-playpen-url-format "https://play.rust-lang.org/?code=%s"
"Format string to use when submitting code to the playpen"