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_ide_db | |
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_ide_db')
-rw-r--r-- | crates/ra_ide_db/src/source_change.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/ra_ide_db/src/source_change.rs b/crates/ra_ide_db/src/source_change.rs index c64165f3a..94e118dd8 100644 --- a/crates/ra_ide_db/src/source_change.rs +++ b/crates/ra_ide_db/src/source_change.rs | |||
@@ -4,7 +4,7 @@ | |||
4 | //! It can be viewed as a dual for `AnalysisChange`. | 4 | //! It can be viewed as a dual for `AnalysisChange`. |
5 | 5 | ||
6 | use ra_db::{FileId, FilePosition, RelativePathBuf, SourceRootId}; | 6 | use ra_db::{FileId, FilePosition, RelativePathBuf, SourceRootId}; |
7 | use ra_text_edit::{TextEdit, TextSize}; | 7 | use ra_text_edit::TextEdit; |
8 | 8 | ||
9 | #[derive(Debug, Clone)] | 9 | #[derive(Debug, Clone)] |
10 | pub struct SourceChange { | 10 | pub struct SourceChange { |
@@ -109,7 +109,6 @@ pub enum FileSystemEdit { | |||
109 | pub struct SingleFileChange { | 109 | pub struct SingleFileChange { |
110 | pub label: String, | 110 | pub label: String, |
111 | pub edit: TextEdit, | 111 | pub edit: TextEdit, |
112 | pub cursor_position: Option<TextSize>, | ||
113 | } | 112 | } |
114 | 113 | ||
115 | impl SingleFileChange { | 114 | impl SingleFileChange { |
@@ -118,7 +117,7 @@ impl SingleFileChange { | |||
118 | label: self.label, | 117 | label: self.label, |
119 | source_file_edits: vec![SourceFileEdit { file_id, edit: self.edit }], | 118 | source_file_edits: vec![SourceFileEdit { file_id, edit: self.edit }], |
120 | file_system_edits: Vec::new(), | 119 | file_system_edits: Vec::new(), |
121 | cursor_position: self.cursor_position.map(|offset| FilePosition { file_id, offset }), | 120 | cursor_position: None, |
122 | is_snippet: false, | 121 | is_snippet: false, |
123 | } | 122 | } |
124 | } | 123 | } |