File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -149,15 +149,15 @@ impl ChangeFixture {
149
149
for entry in fixture {
150
150
let text = if entry. text . contains ( CURSOR_MARKER ) {
151
151
if entry. text . contains ( ESCAPED_CURSOR_MARKER ) {
152
- entry. text . replace ( ESCAPED_CURSOR_MARKER , CURSOR_MARKER )
152
+ entry. text . replace ( ESCAPED_CURSOR_MARKER , CURSOR_MARKER ) . into ( )
153
153
} else {
154
154
let ( range_or_offset, text) = extract_range_or_offset ( & entry. text ) ;
155
155
assert ! ( file_position. is_none( ) ) ;
156
156
file_position = Some ( ( file_id, range_or_offset) ) ;
157
- text
157
+ text. into ( )
158
158
}
159
159
} else {
160
- entry. text . clone ( )
160
+ entry. text . as_str ( ) . into ( )
161
161
} ;
162
162
163
163
let meta = FileMeta :: from_fixture ( entry, current_source_root_kind) ;
@@ -206,7 +206,7 @@ impl ChangeFixture {
206
206
default_env. extend ( meta. env . iter ( ) . map ( |( x, y) | ( x. to_owned ( ) , y. to_owned ( ) ) ) ) ;
207
207
}
208
208
209
- source_change. change_file ( file_id, Some ( text. into ( ) ) ) ;
209
+ source_change. change_file ( file_id, Some ( text) ) ;
210
210
let path = VfsPath :: new_virtual_path ( meta. path ) ;
211
211
file_set. insert ( file_id, path) ;
212
212
files. push ( file_id) ;
You can’t perform that action at this time.
0 commit comments