summaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-01-23 07:15:27 +0000
committerBlaž Hrastnik2022-01-23 07:15:27 +0000
commit4080341977d10abe91808711a3d5c2bc726c10e1 (patch)
tree898cc76deaf7647255dc96e339329c5be8080356 /helix-view/src/editor.rs
parent7c9ebd05b83e90e55d032f65d9405ad265b82258 (diff)
cargo fmt + clippy lint
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r--helix-view/src/editor.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index caf2bce7..5f71fd46 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -456,11 +456,7 @@ impl Editor {
let id = if let Some(id) = id {
id
} else {
- let mut doc = Document::open(
- &path,
- None,
- Some(self.syn_loader.clone()),
- )?;
+ let mut doc = Document::open(&path, None, Some(self.syn_loader.clone()))?;
let _ = Self::launch_language_server(&mut self.language_servers, &mut doc);