mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-09-20 04:27:21 +03:00
Drop some &mut bounds where & would have sufficed
This commit is contained in:
parent
800d79b584
commit
10b690b5bd
@ -61,7 +61,7 @@ pub fn callback<F: Future<Output = anyhow::Result<Callback>> + Send + 'static>(
|
||||
}
|
||||
|
||||
pub fn handle_callback(
|
||||
&mut self,
|
||||
&self,
|
||||
editor: &mut Editor,
|
||||
compositor: &mut Compositor,
|
||||
call: anyhow::Result<Option<Callback>>,
|
||||
@ -84,7 +84,7 @@ pub async fn next_job(&mut self) -> Option<anyhow::Result<Option<Callback>>> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn add(&mut self, j: Job) {
|
||||
pub fn add(&self, j: Job) {
|
||||
if j.wait {
|
||||
self.wait_futures.push(j.future);
|
||||
} else {
|
||||
|
@ -649,7 +649,7 @@ fn apply_impl(&mut self, transaction: &Transaction, view_id: ViewId) -> bool {
|
||||
// }
|
||||
|
||||
// emit lsp notification
|
||||
if let Some(language_server) = &self.language_server {
|
||||
if let Some(language_server) = self.language_server() {
|
||||
let notify = language_server.text_document_did_change(
|
||||
self.versioned_identifier(),
|
||||
&old_doc,
|
||||
|
Loading…
Reference in New Issue
Block a user