@@ -188,7 +188,7 @@ impl Reportable for Error {
188188 Self :: Unsupported => Report :: error ( "iOS is marked as unsupported in your Cargo.toml metadata" , "If your project should support Android, modify your Cargo.toml, then run `cargo mobile init` and try again." ) ,
189189 Self :: ProjectDirAbsent { project_dir } => Report :: action_request (
190190 "Please run `cargo mobile init` and try again!" ,
191- format ! ( "Xcode project directory {:?} doesn't exist." , project_dir ) ,
191+ format ! ( "Xcode project directory {project_dir :?} doesn't exist." ) ,
192192 ) ,
193193 Self :: OpenFailed ( err) => Report :: error ( "Failed to open project in Xcode" , err) ,
194194 Self :: CheckFailed ( err) => err. report ( ) ,
@@ -201,19 +201,19 @@ impl Reportable for Error {
201201 Self :: CargoEnvFailed ( err) => Report :: error ( "Failed to load cargo env profile" , err) ,
202202 Self :: SdkRootInvalid { sdk_root } => Report :: error (
203203 "SDK root provided by Xcode was invalid" ,
204- format ! ( "{:?} doesn't exist or isn't a directory" , sdk_root ) ,
204+ format ! ( "{sdk_root :?} doesn't exist or isn't a directory" ) ,
205205 ) ,
206206 Self :: IncludeDirInvalid { include_dir } => Report :: error (
207207 "Include dir was invalid" ,
208- format ! ( "{:?} doesn't exist or isn't a directory" , include_dir ) ,
208+ format ! ( "{include_dir :?} doesn't exist or isn't a directory" ) ,
209209 ) ,
210210 Self :: MacosSdkRootInvalid { macos_sdk_root } => Report :: error (
211211 "macOS SDK root was invalid" ,
212- format ! ( "{:?} doesn't exist or isn't a directory" , macos_sdk_root ) ,
212+ format ! ( "{macos_sdk_root :?} doesn't exist or isn't a directory" ) ,
213213 ) ,
214214 Self :: ArchInvalid { arch } => Report :: error (
215215 "Arch specified by Xcode was invalid" ,
216- format ! ( "{:?} isn't a known arch" , arch ) ,
216+ format ! ( "{arch :?} isn't a known arch" ) ,
217217 ) ,
218218 Self :: CompileLibFailed ( err) => err. report ( ) ,
219219 Self :: PodCommandFailed ( err) => Report :: error ( "pod command failed" , err) ,
@@ -484,9 +484,9 @@ impl Exec for Input {
484484 "x86_64" => ( "x86_64_apple_ios" , "x86_64-apple-ios" ) ,
485485 _ => return Err ( Error :: ArchInvalid { arch } ) ,
486486 } ;
487- let cflags = format ! ( "CFLAGS_{}" , triple ) ;
488- let cxxflags = format ! ( "CFLAGS_{}" , triple ) ;
489- let objc_include_path = format ! ( "OBJC_INCLUDE_PATH_{}" , triple ) ;
487+ let cflags = format ! ( "CFLAGS_{triple}" ) ;
488+ let cxxflags = format ! ( "CFLAGS_{triple}" ) ;
489+ let objc_include_path = format ! ( "OBJC_INCLUDE_PATH_{triple}" ) ;
490490 let mut target_env = host_env. clone ( ) ;
491491 target_env. insert ( cflags. as_ref ( ) , isysroot. as_ref ( ) ) ;
492492 target_env. insert ( cxxflags. as_ref ( ) , isysroot. as_ref ( ) ) ;
@@ -532,7 +532,7 @@ impl Exec for Input {
532532 }
533533
534534 // Copy static lib .a to Xcode Project
535- if rust_triple. starts_with ( & "aarch64-apple-ios" ) {
535+ if rust_triple. starts_with ( "aarch64-apple-ios" ) {
536536 std:: fs:: create_dir_all ( format ! (
537537 "Sources/{rust_triple}/{}" ,
538538 profile. as_str( )
0 commit comments