@@ -145,7 +145,7 @@ fn find_hermesc() -> String {
145145 }
146146 }
147147
148- let pods_root_path = env:: var ( "PODS_ROOT" ) . unwrap_or ( "" . to_string ( ) ) ;
148+ let pods_root_path = env:: var ( "PODS_ROOT" ) . unwrap_or ( "" . to_owned ( ) ) ;
149149 format ! ( "{pods_root_path}/hermes-engine/destroot/bin/hermesc" )
150150}
151151
@@ -219,10 +219,10 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
219219 let url = url. trim_end_matches ( '/' ) ;
220220 bundle_file = TempFile :: create ( ) ?;
221221 bundle_path = bundle_file. path ( ) . to_path_buf ( ) ;
222- bundle_url = "~/index.ios.bundle" . to_string ( ) ;
222+ bundle_url = "~/index.ios.bundle" . to_owned ( ) ;
223223 sourcemap_file = TempFile :: create ( ) ?;
224224 sourcemap_path = sourcemap_file. path ( ) . to_path_buf ( ) ;
225- sourcemap_url = "~/index.ios.map" . to_string ( ) ;
225+ sourcemap_url = "~/index.ios.map" . to_owned ( ) ;
226226
227227 // wait up to 10 seconds for the server to be up.
228228 if !api. wait_until_available ( url, Duration :: seconds ( 10 ) ) ? {
@@ -359,7 +359,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
359359 match InfoPlist :: discover_from_env ( ) {
360360 Ok ( Some ( plist) ) => {
361361 // Successfully discovered and parsed Info.plist
362- let dist_string = plist. build ( ) . to_string ( ) ;
362+ let dist_string = plist. build ( ) . to_owned ( ) ;
363363 let release_string =
364364 format ! ( "{}@{}+{}" , plist. bundle_id( ) , plist. version( ) , dist_string) ;
365365 info ! ( "Parse result from Info.plist: {:?}" , & plist) ;
@@ -418,7 +418,7 @@ pub fn wrap_call() -> Result<()> {
418418 let mut sourcemap_path = None ;
419419 let bundle_command = env:: var ( "SENTRY_RN_BUNDLE_COMMAND" ) ;
420420 let compose_source_maps_path = env:: var ( "COMPOSE_SOURCEMAP_PATH" ) ;
421- let no_debug_id = env:: var ( "SENTRY_RN_NO_DEBUG_ID" ) . unwrap_or ( "0" . to_string ( ) ) == "1" ;
421+ let no_debug_id = env:: var ( "SENTRY_RN_NO_DEBUG_ID" ) . unwrap_or ( "0" . to_owned ( ) ) == "1" ;
422422
423423 let report_file_path = env:: var ( "SENTRY_RN_SOURCEMAP_REPORT" ) . unwrap ( ) ;
424424 let mut sourcemap_report: SourceMapReport = if std:: path:: Path :: new ( & report_file_path) . exists ( )
@@ -442,11 +442,11 @@ pub fn wrap_call() -> Result<()> {
442442 if item == "--sourcemap-output" {
443443 sourcemap_path = iter. next ( ) . cloned ( ) ;
444444 } else if let Some ( rest) = item. strip_prefix ( "--sourcemap-output=" ) {
445- sourcemap_path = Some ( rest. to_string ( ) ) ;
445+ sourcemap_path = Some ( rest. to_owned ( ) ) ;
446446 } else if item == "--bundle-output" {
447447 bundle_path = iter. next ( ) . cloned ( ) ;
448448 } else if let Some ( rest) = item. strip_prefix ( "--bundle-output=" ) {
449- bundle_path = Some ( rest. to_string ( ) ) ;
449+ bundle_path = Some ( rest. to_owned ( ) ) ;
450450 }
451451 }
452452
@@ -551,8 +551,8 @@ pub fn wrap_call() -> Result<()> {
551551 . get ( "debugId" )
552552 . or_else ( || packager_sourcemap. get ( "debug_id" ) )
553553 {
554- hermes_sourcemap. insert ( "debugId" . to_string ( ) , debug_id. clone ( ) ) ;
555- hermes_sourcemap. insert ( "debug_id" . to_string ( ) , debug_id. clone ( ) ) ;
554+ hermes_sourcemap. insert ( "debugId" . to_owned ( ) , debug_id. clone ( ) ) ;
555+ hermes_sourcemap. insert ( "debug_id" . to_owned ( ) , debug_id. clone ( ) ) ;
556556
557557 hermes_sourcemap_file = fs:: File :: create ( hermes_sourcemap_path) ?;
558558 serde_json:: to_writer ( & mut hermes_sourcemap_file, & hermes_sourcemap) ?;
0 commit comments