@@ -65,16 +65,12 @@ pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<PathBuf>> {
6565 log:: info!( action = "Bundling" ; "{} ({})" , app_product_name, app_bundle_path. display( ) ) ;
6666
6767 if app_bundle_path. exists ( ) {
68- fs:: remove_dir_all ( & app_bundle_path) . fs_context (
69- "failed to remove old app bundle" ,
70- app_bundle_path. to_path_buf ( ) ,
71- ) ?;
68+ fs:: remove_dir_all ( & app_bundle_path)
69+ . fs_context ( "failed to remove old app bundle" , & app_bundle_path) ?;
7270 }
7371 let bundle_directory = app_bundle_path. join ( "Contents" ) ;
74- fs:: create_dir_all ( & bundle_directory) . fs_context (
75- "failed to create bundle directory" ,
76- bundle_directory. to_path_buf ( ) ,
77- ) ?;
72+ fs:: create_dir_all ( & bundle_directory)
73+ . fs_context ( "failed to create bundle directory" , & bundle_directory) ?;
7874
7975 let resources_dir = bundle_directory. join ( "Resources" ) ;
8076 let bin_dir = bundle_directory. join ( "MacOS" ) ;
@@ -459,20 +455,12 @@ fn copy_frameworks_to_bundle(
459455) -> crate :: Result < Vec < SignTarget > > {
460456 let mut paths = Vec :: new ( ) ;
461457
462- let frameworks = settings
463- . macos ( )
464- . frameworks
465- . as_ref ( )
466- . cloned ( )
467- . unwrap_or_default ( ) ;
458+ let frameworks = settings. macos ( ) . frameworks . clone ( ) . unwrap_or_default ( ) ;
468459 if frameworks. is_empty ( ) {
469460 return Ok ( paths) ;
470461 }
471462 let dest_dir = bundle_directory. join ( "Frameworks" ) ;
472- fs:: create_dir_all ( & dest_dir) . fs_context (
473- "failed to create Frameworks directory" ,
474- dest_dir. to_path_buf ( ) ,
475- ) ?;
463+ fs:: create_dir_all ( & dest_dir) . fs_context ( "failed to create Frameworks directory" , & dest_dir) ?;
476464 for framework in frameworks. iter ( ) {
477465 if framework. ends_with ( ".framework" ) {
478466 let src_path = PathBuf :: from ( framework) ;
0 commit comments