diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-05-21 09:38:55 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-21 09:38:55 +0100 |
commit | a4e6963a2313971fe7bbec97d03bc67266ef68a9 (patch) | |
tree | dbc6e10c6bc3f56cd374498a088dbcd9c48d13ef /crates/ra_assists | |
parent | 42dd0ce51ffee1dbfc58be7ebb0861aa2331b9cc (diff) | |
parent | 4fdb1eac08bc29029fe888967dcc11d38d25c205 (diff) |
Merge #4547
4547: Remove unused cursor positions r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_assists')
-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 | } |