loader: use portable way of path joining
This commit is contained in:
parent
2949b210b9
commit
f627a97d24
2 changed files with 6 additions and 3 deletions
|
|
@ -112,7 +112,8 @@ impl Loader {
|
|||
Ok(path) => PathBuf::from(path),
|
||||
_ => dirs::cache_dir()
|
||||
.ok_or(anyhow!("Cannot determine cache directory"))?
|
||||
.join("tree-sitter/lib"),
|
||||
.join("tree-sitter")
|
||||
.join("lib"),
|
||||
};
|
||||
Ok(Self::with_parser_lib_path(parser_lib_path))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue