Skip to content

Commit

Permalink
Merge pull request #78 from niuiic/main
Browse files Browse the repository at this point in the history
fix: find project root dir
  • Loading branch information
rouge8 authored Dec 18, 2024
2 parents 7ef1e34 + 1b83de0 commit 017cd75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neotest-rust/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function adapter.root(dir)
local cwd = lib.files.match_root_pattern("Cargo.toml")(dir)

if cwd == nil then
return
return vim.fs.root(0, "Cargo.toml")
end

return cargo_metadata(cwd).workspace_root
Expand Down

0 comments on commit 017cd75

Please sign in to comment.