Skip to content

Commit eaab718

Browse files
committed
Use macro for shorter code.
1 parent 3b27267 commit eaab718

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rs-playground.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ By default confirmation required."
178178

179179
(defun rust-playground-inside ()
180180
"It checks that minor mode is rusl-playground and buffer file placed under default directory."
181-
(and (boundp 'rust-playground-mode) rust-playground-mode
182-
(if (string-match-p (file-truename rust-playground-basedir) (file-truename (buffer-file-name))) t)))
181+
(if (string-match-p (file-truename rust-playground-basedir) (file-truename (buffer-file-name)))
182+
(bound-and-true-p rust-playground-mode)))
183183

184184
(provide 'rust-playground)
185185
;;; rust-playground.el ends here

0 commit comments

Comments
 (0)