summaryrefslogtreecommitdiff
path: root/support/texlab/src/diagnostics/build_log.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/src/diagnostics/build_log.rs')
-rw-r--r--support/texlab/src/diagnostics/build_log.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/support/texlab/src/diagnostics/build_log.rs b/support/texlab/src/diagnostics/build_log.rs
index 8bd83f695a..e280d862bc 100644
--- a/support/texlab/src/diagnostics/build_log.rs
+++ b/support/texlab/src/diagnostics/build_log.rs
@@ -55,8 +55,7 @@ pub fn analyze_build_log_static(
.relative_path
.to_str()
.and_then(|path| root_document.uri.join(path).map(Into::into).ok())
- .map(Arc::new)
- .unwrap_or_else(|| Arc::clone(&root_document.uri))
+ .map_or_else(|| Arc::clone(&root_document.uri), Arc::new)
} else {
Arc::clone(&root_document.uri)
};