@@ -398,15 +398,23 @@ fn build_from_src() {
398
398
framework_library_path
399
399
) ;
400
400
if framework_library_path. exists ( ) {
401
- fs:: remove_file ( & framework_library_path) . unwrap ( ) ;
401
+ fs:: remove_file ( & framework_library_path)
402
+ . expect ( & format ! ( "{:?} should be removable" , framework_library_path) ) ;
402
403
}
403
- fs:: copy ( framework_target_bazel_bin, & framework_library_path) . unwrap ( ) ;
404
+ fs:: copy ( & framework_target_bazel_bin, & framework_library_path) . expect ( & format ! (
405
+ "{:?} should be copyable to {:?}" ,
406
+ framework_target_bazel_bin, framework_library_path
407
+ ) ) ;
404
408
let target_bazel_bin = source. join ( "bazel-bin" ) . join ( target_path) ;
405
409
log ! ( "Copying {:?} to {:?}" , target_bazel_bin, library_path) ;
406
410
if library_path. exists ( ) {
407
- fs:: remove_file ( & library_path) . unwrap ( ) ;
411
+ fs:: remove_file ( & library_path)
412
+ . expect ( & format ! ( "{:?} should be removable" , library_path) ) ;
408
413
}
409
- fs:: copy ( target_bazel_bin, & library_path) . unwrap ( ) ;
414
+ fs:: copy ( & target_bazel_bin, & library_path) . expect ( & format ! (
415
+ "{:?} should be copyable to {:?}" ,
416
+ target_bazel_bin, library_path
417
+ ) ) ;
410
418
}
411
419
symlink (
412
420
framework_library_path. file_name ( ) . unwrap ( ) ,
0 commit comments