loader: use portable way of path joining

This commit is contained in:
Andrew Hlynskyi 2023-01-11 04:11:04 +02:00
parent 2949b210b9
commit f627a97d24
2 changed files with 6 additions and 3 deletions

View file

@ -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))
}