summaryrefslogtreecommitdiff
path: root/rust-rustfmt.el
diff options
context:
space:
mode:
authorbrotzeit <brotzeitmacher@gmail.com>2021-11-26 19:59:47 +0100
committerbrotzeit <brotzeitmacher@gmail.com>2021-11-26 20:13:02 +0100
commite2c3a7a6d43139291ea9dfe99afc53803d000427 (patch)
treea69019813975fb6335b0bd6e3eee074dcc0615a5 /rust-rustfmt.el
parentaadd1dd8f0780692aea1637569aeadfa8f78fd5a (diff)
downloadrust-mode-e2c3a7a6d43139291ea9dfe99afc53803d000427.tar.gz
allow changing rustfmt hook funtctions
Diffstat (limited to 'rust-rustfmt.el')
-rw-r--r--rust-rustfmt.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust-rustfmt.el b/rust-rustfmt.el
index ddab81f..0690b84 100644
--- a/rust-rustfmt.el
+++ b/rust-rustfmt.el
@@ -347,7 +347,7 @@ Return the created process."
;;; Hooks
-(defun rust-before-save-hook ()
+(defun rust-before-save-method ()
(when rust-format-on-save
(condition-case e
(rust-format-buffer)
@@ -355,7 +355,7 @@ Return the created process."
(car e)
(cdr e))))))
-(defun rust-after-save-hook ()
+(defun rust-after-save-method ()
(when rust-format-on-save
(if (not (executable-find rust-rustfmt-bin))
(error "Could not locate executable \"%s\"" rust-rustfmt-bin)