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 {
149149 for entry in fixture {
150150 let text = if entry. text . contains ( CURSOR_MARKER ) {
151151 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 ( )
153153 } else {
154154 let ( range_or_offset, text) = extract_range_or_offset ( & entry. text ) ;
155155 assert ! ( file_position. is_none( ) ) ;
156156 file_position = Some ( ( file_id, range_or_offset) ) ;
157- text
157+ text. into ( )
158158 }
159159 } else {
160- entry. text . clone ( )
160+ entry. text . as_str ( ) . into ( )
161161 } ;
162162
163163 let meta = FileMeta :: from_fixture ( entry, current_source_root_kind) ;
@@ -206,7 +206,7 @@ impl ChangeFixture {
206206 default_env. extend ( meta. env . iter ( ) . map ( |( x, y) | ( x. to_owned ( ) , y. to_owned ( ) ) ) ) ;
207207 }
208208
209- source_change. change_file ( file_id, Some ( text. into ( ) ) ) ;
209+ source_change. change_file ( file_id, Some ( text) ) ;
210210 let path = VfsPath :: new_virtual_path ( meta. path ) ;
211211 file_set. insert ( file_id, path) ;
212212 files. push ( file_id) ;
You can’t perform that action at this time.
0 commit comments