diff options
author | Blaž Hrastnik | 2021-02-18 09:34:22 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-02-18 09:34:22 +0000 |
commit | c9dd1c930edee68a32ef19ee407820c247937b05 (patch) | |
tree | 667de4906e291df3b1dc1e6f71460415e4eb2501 /helix-lsp/src/client.rs | |
parent | bd85460698c8d74f1a7b79c286a627c3ffcfb67e (diff) |
treewide: &RopeSlice -> RopeSlice. It's Copy so no reason to pass by ref
Diffstat (limited to 'helix-lsp/src/client.rs')
-rw-r--r-- | helix-lsp/src/client.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs index d27beea8..52cd85c1 100644 --- a/helix-lsp/src/client.rs +++ b/helix-lsp/src/client.rs @@ -303,7 +303,7 @@ impl Client { new_pos += i; } Delete(_) => { - let start = pos_to_lsp_pos(&new_text, new_pos); + let start = pos_to_lsp_pos(new_text, new_pos); let end = traverse(start, old_text.slice(old_pos..old_end)); // deletion @@ -314,7 +314,7 @@ impl Client { }); } Insert(s) => { - let start = pos_to_lsp_pos(&new_text, new_pos); + let start = pos_to_lsp_pos(new_text, new_pos); new_pos += s.chars().count(); |