summaryrefslogtreecommitdiff
path: root/lua/lang/rust.lua
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2021-07-17 11:02:17 +0430
committerGitHub <[email protected]>2021-07-17 02:32:17 -0400
commit3f4cf5f01d6fd9da2c133b22ff79c8a55a7910fc (patch)
tree03510cc4a2985b27d20c740901037035a1d90150 /lua/lang/rust.lua
parentad373002d88d7478bb0d73395d2bb39bfa1bee2c (diff)
be explicit about stdin for formatters (#987)
Diffstat (limited to 'lua/lang/rust.lua')
-rw-r--r--lua/lang/rust.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/lang/rust.lua b/lua/lang/rust.lua
index 64c1402a..ecdfa69d 100644
--- a/lua/lang/rust.lua
+++ b/lua/lang/rust.lua
@@ -11,6 +11,7 @@ M.config = function()
formatter = {
exe = "rustfmt",
args = { "--emit=stdout", "--edition=2018" },
+ stdin = true,
},
linter = "",
diagnostics = {
@@ -27,7 +28,7 @@ M.format = function()
return {
exe = O.lang.rust.formatter.exe,
args = O.lang.rust.formatter.args,
- stdin = not (O.lang.rust.formatter.stdin ~= nil),
+ stdin = O.lang.rust.formatter.stdin,
}
end,
}