diff options
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 | } |