summaryrefslogtreecommitdiff
path: root/support/texlab/crates/diagnostics/src/chktex.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/crates/diagnostics/src/chktex.rs')
-rw-r--r--support/texlab/crates/diagnostics/src/chktex.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/texlab/crates/diagnostics/src/chktex.rs b/support/texlab/crates/diagnostics/src/chktex.rs
index a3f539440d..b7cd80d67b 100644
--- a/support/texlab/crates/diagnostics/src/chktex.rs
+++ b/support/texlab/crates/diagnostics/src/chktex.rs
@@ -36,7 +36,7 @@ impl Command {
return None;
}
- let root = ProjectRoot::walk_and_find(workspace, &parent.dir);
+ let root = ProjectRoot::walk_and_find(workspace, parent.dir.as_ref()?);
let working_dir = root.src_dir.to_file_path().ok()?;
log::debug!("Calling ChkTeX from directory: {}", working_dir.display());