From c6d25715899610e62537fc49e68334c4a63a2fb0 Mon Sep 17 00:00:00 2001 From: asduj Date: Sun, 17 Mar 2019 19:37:36 +0300 Subject: [PATCH] Update format.py Change overwrite option on emit related to rustfmt changes https://github.com/rust-lang/rustfmt/commit/95d6b648293b417309d0857b2a93c0cace70c53d#diff-3ed52e1338892b7d63abd1daf724afbeR553 --- format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.py b/format.py index 4f3ca02..1bb9ace 100644 --- a/format.py +++ b/format.py @@ -63,7 +63,7 @@ def is_enabled(self): return is_rust(self.view) def run(self, edit): - args = ['--write-mode=overwrite', self.view.file_name()] + args = ['--emit=files', self.view.file_name()] output, error = rustfmt(args) if error: print_error(error)