summaryrefslogtreecommitdiff
path: root/support/texlab/crates/commands/src/fwd_search.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/crates/commands/src/fwd_search.rs')
-rw-r--r--support/texlab/crates/commands/src/fwd_search.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/texlab/crates/commands/src/fwd_search.rs b/support/texlab/crates/commands/src/fwd_search.rs
index fc0a130f86..55c2df59a0 100644
--- a/support/texlab/crates/commands/src/fwd_search.rs
+++ b/support/texlab/crates/commands/src/fwd_search.rs
@@ -75,12 +75,12 @@ impl ForwardSearch {
};
if !pdf_path.exists() {
- return Err(ForwardSearchError::PdfNotFound(pdf_path.clone()));
+ return Err(ForwardSearchError::PdfNotFound(pdf_path));
}
let tex_path = tex_path.to_string_lossy().into_owned();
let pdf_path = pdf_path.to_string_lossy().into_owned();
- let line = line.unwrap_or_else(|| child.cursor.line);
+ let line = line.unwrap_or(child.cursor.line);
let line = (line + 1).to_string();
let program = config.program.clone();