File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -253,16 +253,24 @@ fn is_serde() {
253
253
#[ test]
254
254
#[ cfg( target_os = "macos" ) ]
255
255
fn simple_test ( ) {
256
- use std:: { env, panic , fs } ;
256
+ use std:: { env, fs , panic } ;
257
257
258
258
// Find our dSYM and replace the DWARF binary with an empty file
259
259
let mut dsym_path = env:: current_exe ( ) . unwrap ( ) ;
260
260
let executable_name = dsym_path. file_name ( ) . unwrap ( ) . to_str ( ) . unwrap ( ) . to_string ( ) ;
261
261
assert ! ( dsym_path. pop( ) ) ; // Pop executable
262
- dsym_path. push ( format ! ( "{}.dSYM/Contents/Resources/DWARF/{0}" , executable_name) ) ;
262
+ dsym_path. push ( format ! (
263
+ "{}.dSYM/Contents/Resources/DWARF/{0}" ,
264
+ executable_name
265
+ ) ) ;
263
266
{
264
- let file = fs:: OpenOptions :: new ( ) . read ( false ) . write ( true ) . truncate ( true ) . create ( false )
265
- . open ( & dsym_path) . unwrap ( ) ;
267
+ let file = fs:: OpenOptions :: new ( )
268
+ . read ( false )
269
+ . write ( true )
270
+ . truncate ( true )
271
+ . create ( false )
272
+ . open ( & dsym_path)
273
+ . unwrap ( ) ;
266
274
}
267
275
268
276
env:: set_var ( "RUST_BACKTRACE" , "1" ) ;
You can’t perform that action at this time.
0 commit comments