Skip to content

Commit 49ff6cc

Browse files
committed
don't throw error in rust-format-on-save
so the file can be saved close #166
1 parent c5ed5ba commit 49ff6cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust-rustfmt.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ Return the created process."
352352
(when rust-format-on-save
353353
(condition-case e
354354
(rust-format-buffer)
355-
(error (format "rust-before-save-hook: %S %S"
355+
(message (format "rust-before-save-hook: %S %S"
356356
(car e)
357357
(cdr e))))))
358358

0 commit comments

Comments
 (0)