We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d69653a commit 00a9508Copy full SHA for 00a9508
lua/rustaceanvim/cargo.lua
@@ -82,7 +82,7 @@ function cargo.get_root_dir(file_name)
82
end
83
if cm == 0 then
84
local ok, cargo_metadata_json = pcall(vim.fn.json_decode, cargo_metadata)
85
- if ok then
+ if ok and cargo_metadata_json then
86
cargo_workspace_dir = cargo_metadata_json['workspace_root']
87
88
0 commit comments