on master help sign in
Drop some &mut bounds where & would have sufficed
10b690bBlaž Hrastnik
helix-term/src/job.rs+2−2
@@ -61,7 +61,7 @@ impl Jobs {
61 }
61 }
62
62
63 pub fn handle_callback(
63 pub fn handle_callback(
64− &mut self,
64+ &self,
65 editor: &mut Editor,
65 editor: &mut Editor,
66 compositor: &mut Compositor,
66 compositor: &mut Compositor,
67 call: anyhow::Result<Option<Callback>>,
67 call: anyhow::Result<Option<Callback>>,
@@ -84,7 +84,7 @@ impl Jobs {
84 }
84 }
85 }
85 }
86
86
87− pub fn add(&mut self, j: Job) {
87+ pub fn add(&self, j: Job) {
88 if j.wait {
88 if j.wait {
89 self.wait_futures.push(j.future);
89 self.wait_futures.push(j.future);
90 } else {
90 } else {
helix-view/src/document.rs+1−1
@@ -649,7 +649,7 @@ impl Document {
649 // }
649 // }
650
650
651 // emit lsp notification
651 // emit lsp notification
652− if let Some(language_server) = &self.language_server {
652+ if let Some(language_server) = self.language_server() {
653 let notify = language_server.text_document_did_change(
653 let notify = language_server.text_document_did_change(
654 self.versioned_identifier(),
654 self.versioned_identifier(),
655 &old_doc,
655 &old_doc,