summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorBjörn Lindström <bkhl@elektrubadur.se>2017-12-27 23:03:46 +0700
committerBjörn Lindström <bkhl@elektrubadur.se>2017-12-27 23:12:57 +0700
commitb0eaddadc9b4b99f8f0163a5b55ab4dc0499d238 (patch)
tree088ad0a2949845a98d942a36e772ff7d55df2dc0 /autoload
parentc165c7c5d11eb827a3be6bab691f20eeb6f6e487 (diff)
downloadale-b0eaddadc9b4b99f8f0163a5b55ab4dc0499d238.zip
Don't use temporary file for rustfmt fixer
rustfmt normally acts on a file in place, and applies configuration from rustfmt.toml files according to the path of the file. Using a temporary file for rustfmt breaks this functionality, so removing the '%t' from the rustfmt command.
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/fixers/rustfmt.vim4
1 files changed, 1 insertions, 3 deletions
diff --git a/autoload/ale/fixers/rustfmt.vim b/autoload/ale/fixers/rustfmt.vim
index fb5ac61c..38882fbf 100644
--- a/autoload/ale/fixers/rustfmt.vim
+++ b/autoload/ale/fixers/rustfmt.vim
@@ -10,8 +10,6 @@ function! ale#fixers#rustfmt#Fix(buffer) abort
return {
\ 'command': ale#Escape(l:executable)
- \ . (empty(l:options) ? '' : ' ' . l:options)
- \ . ' %t',
- \ 'read_temporary_file': 1,
+ \ . (empty(l:options) ? '' : ' ' . l:options),
\}
endfunction