diff options
Diffstat (limited to 'support/texlab/src/diagnostics/chktex.rs')
-rw-r--r-- | support/texlab/src/diagnostics/chktex.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/texlab/src/diagnostics/chktex.rs b/support/texlab/src/diagnostics/chktex.rs index 6e7422d8b0..6b6405d975 100644 --- a/support/texlab/src/diagnostics/chktex.rs +++ b/support/texlab/src/diagnostics/chktex.rs @@ -54,10 +54,10 @@ pub static LINE_REGEX: Lazy<Regex> = fn lint(text: &str, current_dir: &Path) -> io::Result<Vec<Diagnostic>> { let directory = tempdir()?; fs::write(directory.path().join("file.tex"), text)?; - let _ = fs::copy( + drop(fs::copy( current_dir.join("chktexrc"), directory.path().join("chktexrc"), - ); + )); let output = Command::new("chktex") .args(&["-I0", "-f%l:%c:%d:%k:%n:%m\n", "file.tex"]) |