chore: clippy lints

This commit is contained in:
Amaan Qureshi 2024-02-16 16:25:24 -05:00
parent 4342efd57e
commit e32a7f3998
4 changed files with 17 additions and 14 deletions

View file

@ -449,7 +449,7 @@ impl Loader {
.join(format!("{name}.lock"))
} else {
dirs::cache_dir()
.ok_or(anyhow!("Cannot determine cache directory"))?
.ok_or_else(|| anyhow!("Cannot determine cache directory"))?
.join("tree-sitter")
.join("lock")
.join(format!("{name}.lock"))