diff options
Diffstat (limited to 'lua/lang/rust.lua')
-rw-r--r-- | lua/lang/rust.lua | 3 |
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, } |