diff options
Diffstat (limited to 'crates/ra_ide_api/src/assists.rs')
-rw-r--r-- | crates/ra_ide_api/src/assists.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/assists.rs b/crates/ra_ide_api/src/assists.rs index 9a8c23a15..355c0a42a 100644 --- a/crates/ra_ide_api/src/assists.rs +++ b/crates/ra_ide_api/src/assists.rs | |||
@@ -17,7 +17,7 @@ pub(crate) fn assists(db: &RootDatabase, frange: FileRange) -> Vec<Assist> { | |||
17 | let file_id = frange.file_id; | 17 | let file_id = frange.file_id; |
18 | let file_edit = SourceFileEdit { file_id, edit: action.edit }; | 18 | let file_edit = SourceFileEdit { file_id, edit: action.edit }; |
19 | let id = label.id; | 19 | let id = label.id; |
20 | let change = SourceChange::source_edit(label.label, file_edit).with_cursor_opt( | 20 | let change = SourceChange::source_file_edit(label.label, file_edit).with_cursor_opt( |
21 | action.cursor_position.map(|offset| FilePosition { offset, file_id }), | 21 | action.cursor_position.map(|offset| FilePosition { offset, file_id }), |
22 | ); | 22 | ); |
23 | Assist { id, change } | 23 | Assist { id, change } |