diff options
author | Aleksey Kladov <[email protected]> | 2020-05-20 23:46:08 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-05-21 09:37:11 +0100 |
commit | 4fdb1eac08bc29029fe888967dcc11d38d25c205 (patch) | |
tree | dbc6e10c6bc3f56cd374498a088dbcd9c48d13ef /crates/ra_assists/src/assist_context.rs | |
parent | 42dd0ce51ffee1dbfc58be7ebb0861aa2331b9cc (diff) |
Remove unused cursor positions
Diffstat (limited to 'crates/ra_assists/src/assist_context.rs')
-rw-r--r-- | crates/ra_assists/src/assist_context.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_assists/src/assist_context.rs b/crates/ra_assists/src/assist_context.rs index 9f6ca449b..f3af70a3e 100644 --- a/crates/ra_assists/src/assist_context.rs +++ b/crates/ra_assists/src/assist_context.rs | |||
@@ -248,8 +248,7 @@ impl AssistBuilder { | |||
248 | 248 | ||
249 | fn finish(self, change_label: String) -> SourceChange { | 249 | fn finish(self, change_label: String) -> SourceChange { |
250 | let edit = self.edit.finish(); | 250 | let edit = self.edit.finish(); |
251 | let mut res = SingleFileChange { label: change_label, edit, cursor_position: None } | 251 | let mut res = SingleFileChange { label: change_label, edit }.into_source_change(self.file); |
252 | .into_source_change(self.file); | ||
253 | if self.is_snippet { | 252 | if self.is_snippet { |
254 | res.is_snippet = true; | 253 | res.is_snippet = true; |
255 | } | 254 | } |