summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormgmarlow <graham@mgmarlow.com>2023-06-17 09:37:13 -0700
committermgmarlow <graham@mgmarlow.com>2023-06-17 09:37:13 -0700
commitd8a7c54bf0af720ccd0b1c32e1e38bbe1dac0a21 (patch)
treec84adcadac218c351b7b0e9f8bb8801a5fcdfb97
parentb0af6db7098873baf5147b774c75a36332298b9c (diff)
downloadflymake-clippy-d8a7c54bf0af720ccd0b1c32e1e38bbe1dac0a21.tar.gz
rx-to-string is unnecessary
-rw-r--r--clippy-flymake.el43
1 files changed, 21 insertions, 22 deletions
diff --git a/clippy-flymake.el b/clippy-flymake.el
index 7e8e55c..15680a3 100644
--- a/clippy-flymake.el
+++ b/clippy-flymake.el
@@ -33,28 +33,27 @@
;; 98 | ...
(defun clippy-flymake--build-regexp ()
"Create a regular expression to search Clippy warnings for FILENAME."
- (rx-to-string
- `(seq line-start
- ;; Message
- (group "warning:"
- (zero-or-more nonl))
- "\n"
- (zero-or-more nonl)
- "--> "
- ;; File
- (group
- (zero-or-more nonl))
- ":"
- ;; Line
- (group
- (one-or-more
- (any "0-9")))
- ":"
- ;; Col
- (group
- (one-or-more
- (any "0-9")))
- line-end)))
+ (rx (seq line-start
+ ;; Message
+ (group "warning:"
+ (zero-or-more nonl))
+ "\n"
+ (zero-or-more nonl)
+ "--> "
+ ;; File
+ (group
+ (zero-or-more nonl))
+ ":"
+ ;; Line
+ (group
+ (one-or-more
+ (any "0-9")))
+ ":"
+ ;; Col
+ (group
+ (one-or-more
+ (any "0-9")))
+ line-end)))
(defvar-local clippy-flymake--proc nil
"Clippy subprocess object, used to ensure obsolete processes aren't reused.")