@@ -156,7 +156,7 @@ fn copy_dir(from: &Path, to: &Path) -> Result<()> {
156156
157157// Copies the framework under `{src_dir}/{framework}.framework` to `{dest_dir}/{framework}.framework`.
158158fn copy_framework_from ( src_dir : & Path , framework : & str , dest_dir : & Path ) -> Result < bool > {
159- let src_name = format ! ( "{}.framework" , framework ) ;
159+ let src_name = format ! ( "{framework }.framework" ) ;
160160 let src_path = src_dir. join ( & src_name) ;
161161 if src_path. exists ( ) {
162162 copy_dir ( & src_path, & dest_dir. join ( & src_name) ) ?;
@@ -168,12 +168,8 @@ fn copy_framework_from(src_dir: &Path, framework: &str, dest_dir: &Path) -> Resu
168168
169169// Copies the macOS application bundle frameworks to the target folder
170170fn copy_frameworks ( dest_dir : & Path , frameworks : & [ String ] ) -> Result < ( ) > {
171- std:: fs:: create_dir_all ( dest_dir) . with_context ( || {
172- format ! (
173- "Failed to create frameworks output directory at {:?}" ,
174- dest_dir
175- )
176- } ) ?;
171+ std:: fs:: create_dir_all ( dest_dir)
172+ . with_context ( || format ! ( "Failed to create frameworks output directory at {dest_dir:?}" ) ) ?;
177173 for framework in frameworks. iter ( ) {
178174 if framework. ends_with ( ".framework" ) {
179175 let src_path = PathBuf :: from ( framework) ;
@@ -469,7 +465,7 @@ pub fn try_build(attributes: Attributes) -> Result<()> {
469465 let mut android_package_prefix = String :: new ( ) ;
470466 for ( i, w) in s. enumerate ( ) {
471467 if i == last {
472- println ! ( "cargo:rustc-env=TAURI_ANDROID_PACKAGE_NAME_APP_NAME={}" , w ) ;
468+ println ! ( "cargo:rustc-env=TAURI_ANDROID_PACKAGE_NAME_APP_NAME={w}" ) ;
473469 } else {
474470 android_package_prefix. push_str ( w) ;
475471 android_package_prefix. push ( '_' ) ;
0 commit comments