on master help sign in
Drop some &mut bounds where & would have sufficed
commit10b690b5bd5d3e9ee477782ebfe3f6ff8d11cb3f authorBlaž Hrastnik <blaz@mxxn.io> dateThu 2 Sep 2021, 10:49 (5 years ago) parent800d79b
2 files changed+3−3
helix-term/src/job.rs+2−2 helix-view/src/document.rs+1−1
helix-term/src/job.rs+2−2
@@ -61,7 +61,7 @@ impl Jobs {
6161 }
6262
6363 pub fn handle_callback(
64− &mut self,
64+ &self,
6565 editor: &mut Editor,
6666 compositor: &mut Compositor,
6767 call: anyhow::Result<Option<Callback>>,
@@ -84,7 +84,7 @@ impl Jobs {
8484 }
8585 }
8686
87− pub fn add(&mut self, j: Job) {
87+ pub fn add(&self, j: Job) {
8888 if j.wait {
8989 self.wait_futures.push(j.future);
9090 } else {
helix-view/src/document.rs+1−1
@@ -649,7 +649,7 @@ impl Document {
649649 // }
650650
651651 // emit lsp notification
652− if let Some(language_server) = &self.language_server {
652+ if let Some(language_server) = self.language_server() {
653653 let notify = language_server.text_document_did_change(
654654 self.versioned_identifier(),
655655 &old_doc,