@@ -146,7 +146,7 @@ impl flags::Scip {
146146 let signature_documentation =
147147 token. signature . clone ( ) . map ( |text| scip_types:: Document {
148148 relative_path : relative_path. clone ( ) ,
149- language : "rust" . to_string ( ) ,
149+ language : "rust" . to_owned ( ) ,
150150 text,
151151 position_encoding,
152152 ..Default :: default ( )
@@ -186,7 +186,7 @@ impl flags::Scip {
186186 scip_types:: PositionEncoding :: UTF8CodeUnitOffsetFromLineStart . into ( ) ;
187187 documents. push ( scip_types:: Document {
188188 relative_path,
189- language : "rust" . to_string ( ) ,
189+ language : "rust" . to_owned ( ) ,
190190 occurrences,
191191 symbols,
192192 text : String :: new ( ) ,
@@ -216,7 +216,7 @@ fn get_relative_filepath(
216216 rootpath : & vfs:: AbsPathBuf ,
217217 file_id : ide:: FileId ,
218218) -> Option < String > {
219- Some ( vfs. file_path ( file_id) . as_path ( ) ?. strip_prefix ( rootpath) ?. as_ref ( ) . to_str ( ) ?. to_string ( ) )
219+ Some ( vfs. file_path ( file_id) . as_path ( ) ?. strip_prefix ( rootpath) ?. as_ref ( ) . to_str ( ) ?. to_owned ( ) )
220220}
221221
222222// SCIP Ranges have a (very large) optimization that ranges if they are on the same line
@@ -239,8 +239,8 @@ fn new_descriptor_str(
239239 suffix : scip_types:: descriptor:: Suffix ,
240240) -> scip_types:: Descriptor {
241241 scip_types:: Descriptor {
242- name : name. to_string ( ) ,
243- disambiguator : "" . to_string ( ) ,
242+ name : name. to_owned ( ) ,
243+ disambiguator : "" . to_owned ( ) ,
244244 suffix : suffix. into ( ) ,
245245 special_fields : Default :: default ( ) ,
246246 }
@@ -311,9 +311,9 @@ fn moniker_to_symbol(moniker: &MonikerResult) -> scip_types::Symbol {
311311 scip_types:: Symbol {
312312 scheme : "rust-analyzer" . into ( ) ,
313313 package : Some ( scip_types:: Package {
314- manager : "cargo" . to_string ( ) ,
314+ manager : "cargo" . to_owned ( ) ,
315315 name : package_name,
316- version : version. unwrap_or_else ( || "." . to_string ( ) ) ,
316+ version : version. unwrap_or_else ( || "." . to_owned ( ) ) ,
317317 special_fields : Default :: default ( ) ,
318318 } )
319319 . into ( ) ,
0 commit comments